{
 "lyplug": 1,
 "manifest": {
  "format": 1,
  "name": "Simple Gain",
  "author": "Lyreto",
  "version": "1.0.0",
  "kind": "effect",
  "description": "The smallest useful effect: turns the sound up or down.",
  "params": [
   {
    "id": "gain",
    "name": "Gain",
    "min": -24,
    "max": 12,
    "default": 0,
    "step": 0.5,
    "unit": "dB"
   }
  ]
 },
 "code": "// Simple Gain: multiplies every sample by the Gain knob (in dB).\nplugin({\n  create(host) {\n    return {\n      process(input, output, p, frames) {\n        const g = Math.pow(10, p.gain / 20);\n        for (let c = 0; c < output.length; c++) {\n          const i = input[c], o = output[c];\n          for (let n = 0; n < frames; n++) o[n] = i[n] * g;\n        }\n      }\n    };\n  }\n});\n"
}