{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "music", "description": "An audio layer with fades; the waveform and the loudness meter show what you hear",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#f4f1ea",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "trimStart": "2s", "duration": "6s",
        "volume": 0.8, "fadeIn": "1s", "fadeOut": "1.5s" },
      { "id": "title", "type": "text", "text": "music.mp3", "y": "24%", "font": "Schibsted Grotesk", "fontWeight": 860,
        "fontSize": 104, "letterSpacing": -4.5, "fill": "#161412", "scale": "=1 + 0.06 * beat" },
      { "id": "scope", "type": "waveform", "src": "assets/music.mp3", "trimStart": "2s", "mode": "line", "y": "52%",
        "width": 900, "height": 180, "stroke": "#161412", "strokeWidth": 3, "scaleY": "=min(1, 1.8 * amp)" },
      { "id": "meter-track", "type": "rect", "anchor": "left", "x": 340, "y": "78%", "width": 600, "height": 8,
        "fill": "#e9e4d8" },
      { "id": "meter", "type": "rect", "anchor": "left", "x": 340, "y": "78%", "width": "=600 * amp", "height": 8,
        "fill": "#c92a26" },
      { "id": "meter-label", "type": "text", "y": "86%", "font": "JetBrains Mono", "fontSize": 20, "letterSpacing": 1.6,
        "fill": "#8a857a", "text": "amp ${amp:2}  ·  fadeIn 1s  ·  fadeOut 1.5s" }
    ]
  }]
}
