{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "modes", "description": "The three waveform modes on the same track: bars, mirror and line",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#f4f1ea",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "duration": "6s", "fadeOut": "0.5s" },
      { "id": "bars", "type": "waveform", "src": "assets/music.mp3", "y": "22%", "width": 1000, "height": 150,
        "bars": 40, "gap": 0.4, "cornerRadius": 2, "fill": "#161412" },
      { "id": "mirror", "type": "waveform", "src": "assets/music.mp3", "mode": "mirror", "y": "50%", "width": 1000,
        "height": 150, "bars": 40, "gap": 0.4, "cornerRadius": "50%", "fill": "#4a4640" },
      { "id": "line", "type": "waveform", "src": "assets/music.mp3", "mode": "line", "y": "78%", "width": 1000,
        "height": 150, "stroke": "#c92a26", "strokeWidth": 3 },
      { "id": "label", "type": "text", "anchor": "left", "x": 40, "y": "=pick(i, [158, 360, 562])", "repeat": 3,
        "font": "JetBrains Mono", "fontSize": 16, "letterSpacing": 2, "uppercase": true, "fill": "#8a857a",
        "text": "${pick(i, ['bars', 'mirror', 'line'])}" }
    ]
  }]
}
