{
  "format": "forge.graph/0",
  "name": "Utility",
  "author": "Chirp",
  "license": "CC-BY-4.0",
  "remixed_from": null,
  "description": "The mixing toolbox: gain, left-right balance, stereo width from mono to extra wide, and a polarity switch to fix two amps or mics cancelling each other.",
  "tags": ["utility", "gain", "stereo", "phase"],
  "face": {
    "knobs": [
      { "id": "gain", "label": "Gain", "default": 0.5,
        "controls": [ { "target": "polarity.left", "from": 0, "to": 2 }, { "target": "polarity.right", "from": 0, "to": 2 } ] },
      { "id": "balance", "label": "Balance", "default": 0.5,
        "controls": [ { "target": "balance.pos", "from": -1, "to": 1 } ] },
      { "id": "width", "label": "Width", "default": 0.5,
        "controls": [ { "target": "width.amount", "from": 0.5, "to": -0.5 } ] }
    ],
    "menus": [
      { "id": "polarity", "label": "Polarity", "options": ["Normal", "Flip L", "Flip R", "Flip L+R"], "default": 0,
        "controls": [ { "target": "flip.left", "values": [1, -1, 1, -1] }, { "target": "flip.right", "values": [1, 1, -1, -1] } ] }
    ]
  },
  "nodes": {
    "polarity": { "block": "sides", "in": { "x": "in" } },
    "flip": { "block": "sides", "in": { "x": "polarity" } },
    "balance": { "block": "balance", "in": { "x": "flip" } },
    "width": { "block": "cross", "in": { "x": "balance" } }
  },
  "out": "width"
}
