{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "ducked", "description": "Music trimmed by 1 s and ducked under a voice-over: amp and beat follow the mix, not the file",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#f4f1ea",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "trimStart": "1s", "fadeOut": "0.5s",
        "volume": [[0, 1], ["2.4s", 1], ["2.6s", 0.3], ["4.4s", 0.3], ["4.6s", 1]] },
      { "id": "pulse", "type": "ellipse", "x": 330, "y": 300, "width": 150, "fill": "#161412", "scale": "=1 + 0.35 * beat" },
      { "id": "track", "type": "rect", "anchor": "left", "x": 540, "y": 300, "width": 440, "height": 28, "fill": "#e9e4d8" },
      { "id": "level", "type": "rect", "anchor": "left", "x": 540, "y": 300, "width": "=28 + 412 * amp", "height": 28, "fill": "#c92a26" },
      { "id": "beats", "type": "text", "x": 330, "y": 440, "font": "JetBrains Mono", "fontSize": 22, "letterSpacing": 2.6, "uppercase": true, "fill": "#8a857a", "text": "beats ${beats}" },
      { "id": "amp", "type": "text", "x": 760, "y": 440, "font": "JetBrains Mono", "fontSize": 22, "letterSpacing": 2.6, "uppercase": true, "fill": "#8a857a", "text": "amp ${amp:2}" },
      { "id": "voice", "type": "text", "y": 590, "start": "2.5s", "duration": "2s", "enter": "fade", "exit": "fade",
        "font": "Schibsted Grotesk", "italic": true, "fontSize": 48, "letterSpacing": -1, "fill": "#161412", "text": "“…and the music steps back.”" }
    ]
  }]
}
