{
  "fonts": [{ "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" }],
  "compositions": [{
    "id": "colors", "description": "Color cycling on beats: pick(beats + i, palette) shifts every tile one color per beat",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#f4f1ea",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "fadeOut": "0.5s" },
      { "id": "tile", "type": "rect", "width": 150, "height": 150, "cornerRadius": 4, "x": 640, "y": 290,
        "repeat": { "count": 12, "layout": "grid", "cols": 6, "spacing": 175 },
        "fill": "=pick(beats + i, ['#e9e4d8', '#161412', '#d8d1c1', '#1f5fb0', '#e9e4d8', '#c92a26', '#4a4640'])",
        "scale": "=1 - 0.08 * beat" },
      { "id": "title", "type": "text", "text": "beat ${pad(beats, 2)}", "font": "Schibsted Grotesk", "fontWeight": 860,
        "fontSize": 88, "letterSpacing": -4, "fill": "#161412", "y": 590 }
    ]
  }]
}
