{
  "format": "forge.graph/0",
  "name": "Auto Pan",
  "author": "Chirp",
  "license": "CC-BY-4.0",
  "remixed_from": null,
  "description": "Sweeps the sound from side to side: the left and right levels move in opposite directions, smoothly or in a triangle. Best in stereo, on headphones or two amps.",
  "tags": ["pan", "modulation", "stereo"],
  "face": {
    "display": { "kind": "trace", "label": "Pan", "source": "shape.L", "range": [-1, 1] },
    "knobs": [
      { "id": "rate", "label": "Rate", "default": 0.4,
        "controls": [ { "target": "lfo.rate", "from": 0.1, "to": 8, "curve": "exp" } ] },
      { "id": "depth", "label": "Depth", "default": 0.7,
        "controls": [ { "target": "pan.amount", "from": 1, "to": 0.5 },
                      { "target": "mods.swing", "from": 0, "to": 0.5 } ] },
      { "id": "level", "label": "Level", "default": 0.55,
        "controls": [ { "target": "level.amount", "from": 0.5, "to": 1.6 } ] }
    ],
    "menus": [
      { "id": "shape", "label": "Shape", "options": ["Smooth", "Triangle"], "default": 0,
        "controls": [ { "target": "shape.choice" } ] }
    ]
  },
  "nodes": {
    "lfo": { "block": "lfo", "set": { "stereo_phase": 0.5 } },
    "shape": { "block": "select", "in": { "a": "lfo:sine", "b": "lfo:tri" } },
    "pan": { "block": "gain", "in": { "x": "in" } },
    "level": { "block": "gain", "in": { "x": "pan" } }
  },
  "mods": {
    "swing": { "from": "shape", "target": "pan.amount", "amount": 0 }
  },
  "out": "level"
}
