{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "beat", "description": "beat drives a ripple and a pulse, beats picks the color, bass sets the bar width (sound on)",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s",
    "background": "#f4f1ea",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3" },
      { "id": "ripple", "type": "ellipse", "width": "=240 + 900 * pow(1 - beat, 2)", "height": "=240 + 900 * pow(1 - beat, 2)",
        "fill": null,
        "stroke": "=pick(beats, ['#161412', '#c92a26', '#1f5fb0'])", "strokeWidth": "=1 + 6 * beat",
        "opacity": "=beat", "lint": { "ignore": ["invisible"] } },
      { "id": "word", "type": "text", "text": "on the beat", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 140,
        "letterSpacing": -6, "scale": "=1 + 0.1 * beat",
        "fill": "=lerp('#161412', pick(beats, ['#161412', '#c92a26', '#1f5fb0']), beat)" },
      { "id": "bass", "type": "rect", "y": "68%", "height": 6, "width": "=24 + 560 * bass", "fill": "#161412" },
      { "id": "count", "type": "text", "text": "beats ${pad(beats, 2)}   bass ${bass:2}", "font": "JetBrains Mono",
        "fontSize": 15, "letterSpacing": 1.8, "uppercase": true, "fill": "#8a857a", "y": "76%" }
    ]
  }]
}
