{
  "$type": "at.atmosynth.module",
  "descriptionVersion": 1,
  "moduleId": "808-clap",
  "versionKey": "1",
  "name": "808 hand clap and maracas",
  "description": "The hand clap and the maracas of the Roland TR-808, which share a switch, ported from io-808's Web Audio graph (MIT, Copyright (c) 2016 Vincent Riemer). The clap is white noise through a 1 kHz band-pass, struck four times ten milliseconds apart, each strike falling to nothing, the third silent and the fourth inverted, over a tail that dies in 115 ms. The maracas are the same noise through a 5 kHz high-pass, dying in 30 ms. Kind chooses which, Level is the gain at the end, and how hard a note is struck scales the whole sound. 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": "unit",
      "kind": "waveShaper",
      "options": {
        "curve": [
          1,
          1
        ]
      }
    },
    {
      "id": "kind",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "level",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "out",
      "kind": "moduleOutput",
      "options": {
        "output": "out"
      }
    },
    {
      "id": "noise",
      "kind": "audioBufferSource",
      "options": {
        "loop": true
      }
    },
    {
      "id": "clapBand",
      "kind": "biquadFilter",
      "options": {
        "type": "bandpass"
      }
    },
    {
      "id": "clapBandFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          650,
          650
        ]
      }
    },
    {
      "id": "clock",
      "kind": "constantSource",
      "options": {}
    },
    {
      "id": "bursts",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "burstShape",
      "kind": "waveShaper",
      "options": {
        "curve": [
          0,
          "-0.01",
          "-0.02",
          "-0.03",
          "-0.04",
          "-0.05",
          "-0.06",
          "-0.07",
          "-0.08",
          "-0.09",
          "-0.1",
          "-0.11",
          "-0.12",
          "-0.13",
          "-0.14",
          "-0.15",
          "-0.16",
          "-0.17",
          "-0.18",
          "-0.19",
          "-0.2",
          "-0.21",
          "-0.22",
          "-0.23",
          "-0.24",
          "-0.25",
          "-0.26",
          "-0.27",
          "-0.28",
          "-0.29",
          "-0.3",
          "-0.31",
          "-0.32",
          "-0.33",
          "-0.34",
          "-0.35",
          "-0.36",
          "-0.37",
          "-0.38",
          "-0.39",
          "-0.4",
          "-0.41",
          "-0.42",
          "-0.43",
          "-0.44",
          "-0.45",
          "-0.46",
          "-0.47",
          "-0.48",
          "-0.49",
          "-0.5",
          "-0.51",
          "-0.52",
          "-0.53",
          "-0.54",
          "-0.55",
          "-0.56",
          "-0.57",
          "-0.58",
          "-0.59",
          "-0.6",
          "-0.61",
          "-0.62",
          "-0.63",
          "-0.64",
          "-0.65",
          "-0.66",
          "-0.67",
          "-0.68",
          "-0.69",
          "-0.7",
          "-0.71",
          "-0.72",
          "-0.73",
          "-0.74",
          "-0.75",
          "-0.76",
          "-0.77",
          "-0.78",
          "-0.79",
          "-0.8",
          "-0.81",
          "-0.82",
          "-0.83",
          "-0.84",
          "-0.85",
          "-0.86",
          "-0.87",
          "-0.88",
          "-0.89",
          "-0.9",
          "-0.91",
          "-0.92",
          "-0.93",
          "-0.94",
          "-0.95",
          "-0.96",
          "-0.97",
          "-0.98",
          "-0.99",
          "-0.5",
          "-0.505",
          "-0.51",
          "-0.515",
          "-0.52",
          "-0.525",
          "-0.53",
          "-0.535",
          "-0.54",
          "-0.545",
          "-0.55",
          "-0.555",
          "-0.56",
          "-0.565",
          "-0.57",
          "-0.575",
          "-0.58",
          "-0.585",
          "-0.59",
          "-0.595",
          "-0.6",
          "-0.605",
          "-0.61",
          "-0.615",
          "-0.62",
          "-0.625",
          "-0.63",
          "-0.635",
          "-0.64",
          "-0.645",
          "-0.65",
          "-0.655",
          "-0.66",
          "-0.665",
          "-0.67",
          "-0.675",
          "-0.68",
          "-0.685",
          "-0.69",
          "-0.695",
          "-0.7",
          "-0.705",
          "-0.71",
          "-0.715",
          "-0.72",
          "-0.725",
          "-0.73",
          "-0.735",
          "-0.74",
          "-0.745",
          "-0.75",
          "-0.755",
          "-0.76",
          "-0.765",
          "-0.77",
          "-0.775",
          "-0.78",
          "-0.785",
          "-0.79",
          "-0.795",
          "-0.8",
          "-0.805",
          "-0.81",
          "-0.815",
          "-0.82",
          "-0.825",
          "-0.83",
          "-0.835",
          "-0.84",
          "-0.845",
          "-0.85",
          "-0.855",
          "-0.86",
          "-0.865",
          "-0.87",
          "-0.875",
          "-0.88",
          "-0.885",
          "-0.89",
          "-0.895",
          "-0.9",
          "-0.905",
          "-0.91",
          "-0.915",
          "-0.92",
          "-0.925",
          "-0.93",
          "-0.935",
          "-0.94",
          "-0.945",
          "-0.95",
          "-0.955",
          "-0.96",
          "-0.965",
          "-0.97",
          "-0.975",
          "-0.98",
          "-0.985",
          "-0.99",
          "-0.995",
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          -1,
          "-1.5",
          "-1.495",
          "-1.49",
          "-1.485",
          "-1.48",
          "-1.475",
          "-1.47",
          "-1.465",
          "-1.46",
          "-1.455",
          "-1.45",
          "-1.445",
          "-1.44",
          "-1.435",
          "-1.43",
          "-1.425",
          "-1.42",
          "-1.415",
          "-1.41",
          "-1.405",
          "-1.4",
          "-1.395",
          "-1.39",
          "-1.385",
          "-1.38",
          "-1.375",
          "-1.37",
          "-1.365",
          "-1.36",
          "-1.355",
          "-1.35",
          "-1.345",
          "-1.34",
          "-1.335",
          "-1.33",
          "-1.325",
          "-1.32",
          "-1.315",
          "-1.31",
          "-1.305",
          "-1.3",
          "-1.295",
          "-1.29",
          "-1.285",
          "-1.28",
          "-1.275",
          "-1.27",
          "-1.265",
          "-1.26",
          "-1.255",
          "-1.25",
          "-1.245",
          "-1.24",
          "-1.235",
          "-1.23",
          "-1.225",
          "-1.22",
          "-1.215",
          "-1.21",
          "-1.205",
          "-1.2",
          "-1.195",
          "-1.19",
          "-1.185",
          "-1.18",
          "-1.175",
          "-1.17",
          "-1.165",
          "-1.16",
          "-1.155",
          "-1.15",
          "-1.145",
          "-1.14",
          "-1.135",
          "-1.13",
          "-1.125",
          "-1.12",
          "-1.115",
          "-1.11",
          "-1.105",
          "-1.1",
          "-1.095",
          "-1.09",
          "-1.085",
          "-1.08",
          "-1.075",
          "-1.07",
          "-1.065",
          "-1.06",
          "-1.055",
          "-1.05",
          "-1.045",
          "-1.04",
          "-1.035",
          "-1.03",
          "-1.025",
          "-1.02",
          "-1.015",
          "-1.01",
          "-1.005",
          -1
        ]
      }
    },
    {
      "id": "tail",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "pickClap",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "whenClap",
      "kind": "waveShaper",
      "options": {
        "curve": [
          0,
          0,
          -1
        ]
      }
    },
    {
      "id": "tailOpen",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "opens0_2",
      "kind": "waveShaper",
      "options": {
        "curve": [
          -1,
          "-0.5",
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          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": "maracasHigh",
      "kind": "biquadFilter",
      "options": {
        "type": "highpass"
      }
    },
    {
      "id": "maracasHighFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          4650,
          4650
        ]
      }
    },
    {
      "id": "shake",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "pickMaracas",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "whenMaracas",
      "kind": "waveShaper",
      "options": {
        "curve": [
          -1,
          -1,
          0
        ]
      }
    },
    {
      "id": "shakeOpen",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "hold",
      "kind": "constantSource",
      "options": {}
    }
  ],
  "connections": [
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "unit",
        "input": 0
      }
    },
    {
      "from": {
        "node": "unit",
        "output": 0
      },
      "to": {
        "node": "kind",
        "input": 0
      }
    },
    {
      "from": {
        "node": "level",
        "output": 0
      },
      "to": {
        "node": "out",
        "input": 0
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "clapBandFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clapBandFrequency",
        "output": 0
      },
      "to": {
        "node": "clapBand",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "noise",
        "output": 0
      },
      "to": {
        "node": "clapBand",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clock",
        "output": 0
      },
      "to": {
        "node": "burstShape",
        "input": 0
      }
    },
    {
      "from": {
        "node": "burstShape",
        "output": 0
      },
      "to": {
        "node": "bursts",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "kind",
        "output": 0
      },
      "to": {
        "node": "whenClap",
        "input": 0
      }
    },
    {
      "from": {
        "node": "whenClap",
        "output": 0
      },
      "to": {
        "node": "pickClap",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "clock",
        "output": 0
      },
      "to": {
        "node": "opens0_2",
        "input": 0
      }
    },
    {
      "from": {
        "node": "opens0_2",
        "output": 0
      },
      "to": {
        "node": "tailOpen",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "clapBand",
        "output": 0
      },
      "to": {
        "node": "bursts",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clapBand",
        "output": 0
      },
      "to": {
        "node": "tailOpen",
        "input": 0
      }
    },
    {
      "from": {
        "node": "tailOpen",
        "output": 0
      },
      "to": {
        "node": "tail",
        "input": 0
      }
    },
    {
      "from": {
        "node": "bursts",
        "output": 0
      },
      "to": {
        "node": "pickClap",
        "input": 0
      }
    },
    {
      "from": {
        "node": "tail",
        "output": 0
      },
      "to": {
        "node": "pickClap",
        "input": 0
      }
    },
    {
      "from": {
        "node": "pickClap",
        "output": 0
      },
      "to": {
        "node": "level",
        "input": 0
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "maracasHighFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "maracasHighFrequency",
        "output": 0
      },
      "to": {
        "node": "maracasHigh",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "kind",
        "output": 0
      },
      "to": {
        "node": "whenMaracas",
        "input": 0
      }
    },
    {
      "from": {
        "node": "whenMaracas",
        "output": 0
      },
      "to": {
        "node": "pickMaracas",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "opens0_2",
        "output": 0
      },
      "to": {
        "node": "shakeOpen",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "noise",
        "output": 0
      },
      "to": {
        "node": "maracasHigh",
        "input": 0
      }
    },
    {
      "from": {
        "node": "maracasHigh",
        "output": 0
      },
      "to": {
        "node": "shakeOpen",
        "input": 0
      }
    },
    {
      "from": {
        "node": "shakeOpen",
        "output": 0
      },
      "to": {
        "node": "shake",
        "input": 0
      }
    },
    {
      "from": {
        "node": "shake",
        "output": 0
      },
      "to": {
        "node": "pickMaracas",
        "input": 0
      }
    },
    {
      "from": {
        "node": "pickMaracas",
        "output": 0
      },
      "to": {
        "node": "level",
        "input": 0
      }
    }
  ],
  "automation": [
    {
      "id": "clock",
      "label": "Clock",
      "target": {
        "node": "clock",
        "param": "offset"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "-1",
          "curve": "step"
        },
        {
          "time": 40,
          "value": "1",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "tail",
      "label": "Tail",
      "target": {
        "node": "tail",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "0.75",
          "curve": "step"
        },
        {
          "time": 115,
          "value": "0",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "shake",
      "label": "Maracas",
      "target": {
        "node": "shake",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "0.5",
          "curve": "step"
        },
        {
          "time": 30,
          "value": "0",
          "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": 150,
          "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": "kind",
      "label": "Kind",
      "values": [
        "clap",
        "maracas"
      ],
      "default": "clap",
      "targets": [
        {
          "node": "kind",
          "param": "gain"
        }
      ]
    }
  ],
  "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"
}