{
  "fonts": [{ "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" }],
  "compositions": [{
    "id": "beat", "description": "Beat pulse: amp, bass and beat from the music drive scale, glow and color",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#131210",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "trimStart": "2s", "fadeIn": "0.3s", "fadeOut": "0.6s" },
      { "id": "halo", "type": "ellipse", "width": 420, "y": "46%", "scale": "=1 + 0.35 * bass",
        "fill": { "type": "radial", "stops": ["#efebe222", "#efebe200"] } },
      { "id": "dot", "type": "ellipse", "width": 14, "x": "50%", "y": "46%",
        "repeat": { "count": 24, "layout": "radial", "radius": 170 },
        "scale": "=1 + 1.2 * beat", "fill": "=pick(beats + i, ['#f05a4e', '#6aa6e8', '#efebe2'])" },
      { "id": "core", "type": "text", "text": "beat", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 100, "letterSpacing": -4,
        "fill": "#efebe2", "y": "46%", "scale": "=1 + 0.18 * beat", "glow": { "radius": "=4 + 30 * beat", "color": "#f05a4e" } },
      { "id": "viz", "type": "waveform", "src": "assets/music.mp3", "trimStart": "2s", "mode": "line",
        "y": "88%", "width": "70%", "height": 90, "stroke": "#8f8a7f", "strokeWidth": 2 }
    ]
  }]
}
