{
  "format": "forge.graph/0",
  "name": "Envelope Filter",
  "author": "Chirp",
  "license": "CC-BY-4.0",
  "remixed_from": null,
  "description": "Auto-wah: the harder you pick, the higher a resonant filter jumps, then it falls back as the note fades. Funk in a box.",
  "tags": ["filter", "envelope", "wah"],
  "face": {
    "display": { "kind": "meter", "label": "Env", "source": "env", "range": [0, 0.5] },
    "knobs": [
      { "id": "sens", "label": "Sens", "default": 0.55,
        "controls": [ { "target": "mods.sweep", "from": 0, "to": 9000, "curve": "square" } ] },
      { "id": "start", "label": "Start", "default": 0.3,
        "controls": [ { "target": "filt.freq", "from": 150, "to": 1200, "curve": "exp" } ] },
      { "id": "reso", "label": "Reso", "default": 0.5,
        "controls": [ { "target": "filt.q", "from": 1, "to": 10, "curve": "exp" } ] },
      { "id": "decay", "label": "Decay", "default": 0.4,
        "controls": [ { "target": "env.release_ms", "from": 40, "to": 600, "curve": "exp" } ] },
      { "id": "mix", "label": "Mix", "default": 0.85,
        "controls": [ { "target": "mixer.mix", "from": 0, "to": 1 } ] }
    ],
    "menus": [
      { "id": "mode", "label": "Mode", "options": ["Lowpass", "Bandpass", "Highpass"], "default": 1,
        "controls": [ { "target": "pick.choice" }, { "target": "level.amount", "values": [0.8, 1.4, 1] } ] }
    ]
  },
  "nodes": {
    "env": { "block": "envelope", "mono": true, "set": { "attack_ms": 4 }, "in": { "x": "in" } },
    "filt": { "block": "svf", "in": { "x": "in" } },
    "pick": { "block": "select", "in": { "a": "filt:lp", "b": "filt:bp", "c": "filt:hp" } },
    "level": { "block": "gain", "in": { "x": "pick" } },
    "mixer": { "block": "blend", "in": { "dry": "in", "wet": "level" } }
  },
  "mods": {
    "sweep": { "from": "env", "target": "filt.freq", "amount": 0 }
  },
  "out": "mixer"
}
