{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "beats", "description": "The analyze report drawn as a lane: bass every 0.25 s and the nine beats, lit as the playhead passes",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#f4f1ea",
    "props": { "bass": [0.816, 0.394, 0.45, 0.213, 0.275, 0.129, 0.184, 0.086, 0.816, 0.394, 0.45, 0.213, 0.275, 0.129, 0.184, 0.086, 0.816, 0.394, 0.45, 0.213, 0.275, 0.129, 0.189, 0.088],
      "beats": [0, 1, 1.5, 2, 3, 3.5, 4, 5, 5.5] },
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "fadeOut": "0.4s" },
      { "id": "head", "type": "text", "anchor": "left", "x": 140, "y": 130, "font": "JetBrains Mono", "fontSize": 22, "fill": "#8a857a",
        "text": "vidmake analyze assets/music.mp3 → 9 beats, ≈120 BPM" },
      { "id": "bar", "type": "rect", "anchor": "bottom", "x": "=140 + (i + 0.5) * 42.5", "y": 430, "width": 30, "cornerRadius": 2,
        "repeat": 24, "height": "=8 + 230 * pick(i, {{bass}})", "fill": "=t >= i * 0.25 ? '#161412' : '#d8d1c1'" },
      { "id": "tick", "type": "ellipse", "x": "=140 + pick(i, {{beats}}) * 170", "y": 500, "width": 22, "repeat": 9,
        "fill": "=beats > i ? '#c92a26' : '#8a857a55'", "scale": "=1 + 0.8 * (beats == i + 1 ? beat : 0)" },
      { "id": "lane", "type": "text", "anchor": "left", "x": 1178, "y": "=pick(i, [330, 500])", "repeat": 2, "font": "JetBrains Mono",
        "fontSize": 20, "fill": "#8a857a", "text": "${pick(i, ['bass', 'beats'])}" },
      { "id": "playhead", "type": "rect", "anchor": "top", "x": "=140 + t * 170", "y": 170, "width": 2, "height": 360, "fill": "#161412" },
      { "id": "readout", "type": "text", "y": 600, "font": "JetBrains Mono", "fontSize": 28, "fill": "#161412",
        "text": "bass ${bass:2} · beat ${beat:2} · beats ${beats}" }
    ]
  }]
}
