{
  "$type": "at.atmosynth.module",
  "descriptionVersion": 1,
  "moduleId": "808-snare",
  "versionKey": "1",
  "name": "808 snare drum",
  "description": "The snare drum of the Roland TR-808, ported from io-808's Web Audio graph (MIT, Copyright (c) 2016 Vincent Riemer): two sines at 476 and 238 Hz that die in 50 ms, under white noise through a high-pass that dies in 75 ms. Every key plays the same drum. Tone is the noise's high-pass cutoff in hertz. Snappy is the level the two sines start at, as io-808 has it. Level is the gain at the end, and how hard a note is struck scales the whole drum. The noise is a second of white noise the voice comes with, looped. Each note is a hit of its own. An automation is counted in whole milliseconds and io-808 opens its envelopes in a fraction of one, so each opens by a clock drawn finer, from the strike, and falls by an automation.",
  "audioInputs": [],
  "audioOutputs": [
    {
      "id": "out",
      "label": "Out"
    }
  ],
  "midiInputs": [
    {
      "id": "midi",
      "label": "Note"
    }
  ],
  "nodes": [
    {
      "id": "note",
      "kind": "midiInput",
      "options": {
        "midiInput": "midi"
      }
    },
    {
      "id": "one",
      "kind": "constantSource",
      "options": {}
    },
    {
      "id": "high",
      "kind": "oscillator",
      "options": {
        "type": "sine"
      }
    },
    {
      "id": "highFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          36,
          36
        ]
      }
    },
    {
      "id": "low",
      "kind": "oscillator",
      "options": {
        "type": "sine"
      }
    },
    {
      "id": "lowFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          -202,
          -202
        ]
      }
    },
    {
      "id": "body",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "noise",
      "kind": "audioBufferSource",
      "options": {
        "loop": true
      }
    },
    {
      "id": "tone",
      "kind": "biquadFilter",
      "options": {
        "type": "highpass"
      }
    },
    {
      "id": "snares",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "level",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "out",
      "kind": "moduleOutput",
      "options": {
        "output": "out"
      }
    },
    {
      "id": "clock",
      "kind": "constantSource",
      "options": {}
    },
    {
      "id": "opening",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "opens0_1",
      "kind": "waveShaper",
      "options": {
        "curve": [
          -1,
          "-0.9",
          "-0.8",
          "-0.7",
          "-0.6",
          "-0.5",
          "-0.4",
          "-0.3",
          "-0.2",
          "-0.1",
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      }
    },
    {
      "id": "hold",
      "kind": "constantSource",
      "options": {}
    }
  ],
  "connections": [
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "highFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "highFrequency",
        "output": 0
      },
      "to": {
        "node": "high",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "lowFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "lowFrequency",
        "output": 0
      },
      "to": {
        "node": "low",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "high",
        "output": 0
      },
      "to": {
        "node": "body",
        "input": 0
      }
    },
    {
      "from": {
        "node": "low",
        "output": 0
      },
      "to": {
        "node": "body",
        "input": 0
      }
    },
    {
      "from": {
        "node": "noise",
        "output": 0
      },
      "to": {
        "node": "tone",
        "input": 0
      }
    },
    {
      "from": {
        "node": "tone",
        "output": 0
      },
      "to": {
        "node": "snares",
        "input": 0
      }
    },
    {
      "from": {
        "node": "level",
        "output": 0
      },
      "to": {
        "node": "out",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clock",
        "output": 0
      },
      "to": {
        "node": "opens0_1",
        "input": 0
      }
    },
    {
      "from": {
        "node": "opens0_1",
        "output": 0
      },
      "to": {
        "node": "opening",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "body",
        "output": 0
      },
      "to": {
        "node": "opening",
        "input": 0
      }
    },
    {
      "from": {
        "node": "snares",
        "output": 0
      },
      "to": {
        "node": "opening",
        "input": 0
      }
    },
    {
      "from": {
        "node": "opening",
        "output": 0
      },
      "to": {
        "node": "level",
        "input": 0
      }
    }
  ],
  "automation": [
    {
      "id": "body",
      "label": "Snappy",
      "target": {
        "node": "body",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "0.25",
          "curve": "step"
        },
        {
          "time": 50,
          "value": "0",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "snares",
      "label": "Snares",
      "target": {
        "node": "snares",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "0.5",
          "curve": "step"
        },
        {
          "time": 75,
          "value": "0",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "clock",
      "label": "Clock",
      "target": {
        "node": "clock",
        "param": "offset"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "-1",
          "curve": "step"
        },
        {
          "time": 5,
          "value": "1",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "hold",
      "label": "Hit length",
      "target": {
        "node": "hold",
        "param": "offset"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "1",
          "curve": "step"
        },
        {
          "time": 0,
          "value": "0",
          "curve": "step"
        },
        {
          "time": 100,
          "value": "0",
          "curve": "step"
        }
      ],
      "sustainAt": 0
    }
  ],
  "parameters": [
    {
      "id": "level",
      "label": "Level",
      "range": {
        "min": "0",
        "max": "1"
      },
      "default": "0.92",
      "targets": [
        {
          "node": "level",
          "param": "gain"
        }
      ]
    },
    {
      "id": "tone",
      "label": "Tone (Hz)",
      "range": {
        "min": "800",
        "max": "10800"
      },
      "default": "5800",
      "targets": [
        {
          "node": "tone",
          "param": "frequency"
        }
      ]
    },
    {
      "id": "snappy",
      "label": "Snappy",
      "range": {
        "min": "0",
        "max": "0.5"
      },
      "default": "0.25",
      "targets": [
        {
          "automation": "body",
          "breakpoint": 0,
          "field": "value"
        }
      ]
    }
  ],
  "sampleSlots": [
    {
      "id": "noise",
      "label": "Noise",
      "node": "noise",
      "property": "buffer",
      "default": {
        "blob": {
          "$type": "blob",
          "mimeType": "audio/wav",
          "ref": {
            "$link": "bafkreidwsqshaadxl3brsfqs2zjpthxj4lgmgrqich6jmmpr4no4cyfyi4"
          },
          "size": 96044
        },
        "ownerDid": "did:plc:fzjkahpwapmoqxybwdjb6ysf"
      }
    }
  ],
  "createdAt": "2026-11-18T00:00:00.000Z"
}