{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "compositions": [{
    "id": "speed", "description": "One clip three times: playbackRate 0.5, 1 and 2 (watch the timecode in each corner)",
    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",
    "layers": [
      { "id": "slow", "type": "video", "src": "assets/clip.mp4", "x": 220, "y": "44%", "width": 360, "height": 203,
        "cornerRadius": 2, "muted": true, "playbackRate": 0.5 },
      { "id": "normal", "type": "video", "src": "assets/clip.mp4", "x": 640, "y": "44%", "width": 360, "height": 203,
        "cornerRadius": 2, "muted": true },
      { "id": "fast", "type": "video", "src": "assets/clip.mp4", "x": 1060, "y": "44%", "width": 360, "height": 203,
        "cornerRadius": 2, "muted": true, "playbackRate": 2 },
      { "id": "label", "type": "text", "x": "=220 + i * 420", "y": "70%", "repeat": 3, "font": "JetBrains Mono",
        "fontSize": 20, "letterSpacing": 0.6, "lineHeight": 1.6, "fill": "#4a4640",
        "text": "playbackRate ${pick(i, ['0.5', '1', '2'])}\nsource ${t * pick(i, [0.5, 1, 2]):1}s" }
    ]
  }]
}
