{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "meters", "description": "The four audio variables, live: amp, bass and beat as bars, beats as a counter",
    "width": 1280, "height": 720, "fps": 30, "duration": "6s", "background": "#f4f1ea",
    "layers": [
      { "id": "music", "type": "audio", "src": "assets/music.mp3", "fadeOut": "0.5s" },
      { "id": "well", "type": "rect", "anchor": "bottom", "x": 520, "y": 560, "width": 110, "height": 380,
        "fill": "#e9e4d8", "repeat": { "count": 3, "layout": "row", "spacing": 170 } },
      { "id": "meter", "type": "rect", "anchor": "bottom", "x": 520, "y": 560, "width": 110,
        "repeat": { "count": 3, "layout": "row", "spacing": 170 },
        "height": "=380 * pick(i, [amp, bass, beat])", "fill": "=pick(i, ['#4a4640', '#161412', '#c92a26'])" },
      { "id": "name", "type": "text", "font": "JetBrains Mono", "fontSize": 22, "letterSpacing": 1, "fill": "#8a857a", "x": 520, "y": 610,
        "repeat": { "count": 3, "layout": "row", "spacing": 170 },
        "text": "${pick(i, ['amp ', 'bass ', 'beat '])}${round(pick(i, [amp, bass, beat]), 2)}" },
      { "id": "count", "type": "text", "text": "${beats}", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 160,
        "letterSpacing": -7, "fill": "#161412", "x": 1030, "y": 330, "scale": "=1 + 0.15 * beat" },
      { "id": "count-label", "type": "text", "text": "beats", "font": "JetBrains Mono", "fontSize": 22, "letterSpacing": 1, "fill": "#8a857a", "x": 1030, "y": 610 }
    ]
  }]
}
