{
  "$type": "at.atmosynth.module",
  "descriptionVersion": 1,
  "moduleId": "808-rimshot",
  "versionKey": "1",
  "name": "808 rimshot and claves",
  "description": "The rimshot and the claves of the Roland TR-808, which share a switch, ported from io-808's Web Audio graph (MIT, Copyright (c) 2016 Vincent Riemer). The claves are a triangle at 2450 Hz through a band-pass of the same, dying in 40 ms. The rimshot is a sine at 480 Hz through a band-pass and a triangle at 1750 Hz through a 2450 Hz high-pass, half-wave rectified, driven into a soft clipper and cut off in 10 ms, then high-passed at 480 Hz. Kind chooses which, Level is the gain at the end, and how hard a note is struck scales the whole sound. 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": "clock",
      "kind": "constantSource",
      "options": {}
    },
    {
      "id": "ring",
      "kind": "oscillator",
      "options": {
        "type": "sine"
      }
    },
    {
      "id": "ringFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          40,
          40
        ]
      }
    },
    {
      "id": "ringBand",
      "kind": "biquadFilter",
      "options": {
        "type": "bandpass"
      }
    },
    {
      "id": "ringBandFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          130,
          130
        ]
      }
    },
    {
      "id": "wood",
      "kind": "oscillator",
      "options": {
        "type": "triangle"
      }
    },
    {
      "id": "woodFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          1310,
          1310
        ]
      }
    },
    {
      "id": "woodHigh",
      "kind": "biquadFilter",
      "options": {
        "type": "highpass"
      }
    },
    {
      "id": "woodHighFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          2100,
          2100
        ]
      }
    },
    {
      "id": "knock",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "rectify",
      "kind": "waveShaper",
      "options": {
        "curve": [
          0,
          0,
          1
        ]
      }
    },
    {
      "id": "swingDrive",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "swingDriveGain",
      "kind": "waveShaper",
      "options": {
        "curve": [
          2,
          2
        ]
      }
    },
    {
      "id": "swingClip",
      "kind": "waveShaper",
      "options": {
        "curve": [
          "-0.761594",
          "-0.758294",
          "-0.754954",
          "-0.751574",
          "-0.748154",
          "-0.744695",
          "-0.741195",
          "-0.737654",
          "-0.734072",
          "-0.730448",
          "-0.726783",
          "-0.723076",
          "-0.719328",
          "-0.715536",
          "-0.711702",
          "-0.707826",
          "-0.703906",
          "-0.699942",
          "-0.695936",
          "-0.691885",
          "-0.68779",
          "-0.683651",
          "-0.679468",
          "-0.67524",
          "-0.670967",
          "-0.666649",
          "-0.662286",
          "-0.657878",
          "-0.653424",
          "-0.648924",
          "-0.644378",
          "-0.639787",
          "-0.635149",
          "-0.630465",
          "-0.625735",
          "-0.620958",
          "-0.616134",
          "-0.611264",
          "-0.606348",
          "-0.601384",
          "-0.596374",
          "-0.591316",
          "-0.586212",
          "-0.581061",
          "-0.575862",
          "-0.570617",
          "-0.565325",
          "-0.559986",
          "-0.5546",
          "-0.549167",
          "-0.543687",
          "-0.53816",
          "-0.532587",
          "-0.526968",
          "-0.521301",
          "-0.515589",
          "-0.50983",
          "-0.504025",
          "-0.498174",
          "-0.492278",
          "-0.486336",
          "-0.480349",
          "-0.474316",
          "-0.468239",
          "-0.462117",
          "-0.455951",
          "-0.449741",
          "-0.443486",
          "-0.437189",
          "-0.430848",
          "-0.424464",
          "-0.418038",
          "-0.41157",
          "-0.40506",
          "-0.398509",
          "-0.391917",
          "-0.385284",
          "-0.378611",
          "-0.371899",
          "-0.365147",
          "-0.358357",
          "-0.351529",
          "-0.344663",
          "-0.337761",
          "-0.330821",
          "-0.323846",
          "-0.316835",
          "-0.309789",
          "-0.30271",
          "-0.295596",
          "-0.28845",
          "-0.281272",
          "-0.274062",
          "-0.266821",
          "-0.259549",
          "-0.252248",
          "-0.244919",
          "-0.237561",
          "-0.230176",
          "-0.222764",
          "-0.215326",
          "-0.207864",
          "-0.200377",
          "-0.192866",
          "-0.185333",
          "-0.177778",
          "-0.170202",
          "-0.162606",
          "-0.154991",
          "-0.147357",
          "-0.139705",
          "-0.132037",
          "-0.124353",
          "-0.116654",
          "-0.108941",
          "-0.101215",
          "-0.093476",
          "-0.085727",
          "-0.077966",
          "-0.070197",
          "-0.062419",
          "-0.054633",
          "-0.046841",
          "-0.039043",
          "-0.03124",
          "-0.023433",
          "-0.015624",
          "-0.007812",
          0,
          "0.007812",
          "0.015624",
          "0.023433",
          "0.03124",
          "0.039043",
          "0.046841",
          "0.054633",
          "0.062419",
          "0.070197",
          "0.077966",
          "0.085727",
          "0.093476",
          "0.101215",
          "0.108941",
          "0.116654",
          "0.124353",
          "0.132037",
          "0.139705",
          "0.147357",
          "0.154991",
          "0.162606",
          "0.170202",
          "0.177778",
          "0.185333",
          "0.192866",
          "0.200377",
          "0.207864",
          "0.215326",
          "0.222764",
          "0.230176",
          "0.237561",
          "0.244919",
          "0.252248",
          "0.259549",
          "0.266821",
          "0.274062",
          "0.281272",
          "0.28845",
          "0.295596",
          "0.30271",
          "0.309789",
          "0.316835",
          "0.323846",
          "0.330821",
          "0.337761",
          "0.344663",
          "0.351529",
          "0.358357",
          "0.365147",
          "0.371899",
          "0.378611",
          "0.385284",
          "0.391917",
          "0.398509",
          "0.40506",
          "0.41157",
          "0.418038",
          "0.424464",
          "0.430848",
          "0.437189",
          "0.443486",
          "0.449741",
          "0.455951",
          "0.462117",
          "0.468239",
          "0.474316",
          "0.480349",
          "0.486336",
          "0.492278",
          "0.498174",
          "0.504025",
          "0.50983",
          "0.515589",
          "0.521301",
          "0.526968",
          "0.532587",
          "0.53816",
          "0.543687",
          "0.549167",
          "0.5546",
          "0.559986",
          "0.565325",
          "0.570617",
          "0.575862",
          "0.581061",
          "0.586212",
          "0.591316",
          "0.596374",
          "0.601384",
          "0.606348",
          "0.611264",
          "0.616134",
          "0.620958",
          "0.625735",
          "0.630465",
          "0.635149",
          "0.639787",
          "0.644378",
          "0.648924",
          "0.653424",
          "0.657878",
          "0.662286",
          "0.666649",
          "0.670967",
          "0.67524",
          "0.679468",
          "0.683651",
          "0.68779",
          "0.691885",
          "0.695936",
          "0.699942",
          "0.703906",
          "0.707826",
          "0.711702",
          "0.715536",
          "0.719328",
          "0.723076",
          "0.726783",
          "0.730448",
          "0.734072",
          "0.737654",
          "0.741195",
          "0.744695",
          "0.748154",
          "0.751574",
          "0.754954",
          "0.758294",
          "0.761594"
        ],
        "oversample": "2x"
      }
    },
    {
      "id": "swing",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "rimHigh",
      "kind": "biquadFilter",
      "options": {
        "type": "highpass"
      }
    },
    {
      "id": "rimHighFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          130,
          130
        ]
      }
    },
    {
      "id": "pickRimshot",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "whenRimshot",
      "kind": "waveShaper",
      "options": {
        "curve": [
          0,
          0,
          -1
        ]
      }
    },
    {
      "id": "knockOpen",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "opens0_11",
      "kind": "waveShaper",
      "options": {
        "curve": [
          -1,
          "-0.909091",
          "-0.818182",
          "-0.727273",
          "-0.636364",
          "-0.545455",
          "-0.454545",
          "-0.363636",
          "-0.272727",
          "-0.181818",
          "-0.090909",
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          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": "swingOpen",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "claves",
      "kind": "oscillator",
      "options": {
        "type": "triangle"
      }
    },
    {
      "id": "clavesFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          2010,
          2010
        ]
      }
    },
    {
      "id": "clavesBand",
      "kind": "biquadFilter",
      "options": {
        "type": "bandpass"
      }
    },
    {
      "id": "clavesBandFrequency",
      "kind": "waveShaper",
      "options": {
        "curve": [
          2100,
          2100
        ]
      }
    },
    {
      "id": "clack",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "pickClaves",
      "kind": "gain",
      "options": {}
    },
    {
      "id": "whenClaves",
      "kind": "waveShaper",
      "options": {
        "curve": [
          -1,
          -1,
          0
        ]
      }
    },
    {
      "id": "clackOpen",
      "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": "ringFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "ringFrequency",
        "output": 0
      },
      "to": {
        "node": "ring",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "ringBandFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "ringBandFrequency",
        "output": 0
      },
      "to": {
        "node": "ringBand",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "woodFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "woodFrequency",
        "output": 0
      },
      "to": {
        "node": "wood",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "woodHighFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "woodHighFrequency",
        "output": 0
      },
      "to": {
        "node": "woodHigh",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "swingDriveGain",
        "input": 0
      }
    },
    {
      "from": {
        "node": "swingDriveGain",
        "output": 0
      },
      "to": {
        "node": "swingDrive",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "rimHighFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "rimHighFrequency",
        "output": 0
      },
      "to": {
        "node": "rimHigh",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "kind",
        "output": 0
      },
      "to": {
        "node": "whenRimshot",
        "input": 0
      }
    },
    {
      "from": {
        "node": "whenRimshot",
        "output": 0
      },
      "to": {
        "node": "pickRimshot",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "ring",
        "output": 0
      },
      "to": {
        "node": "ringBand",
        "input": 0
      }
    },
    {
      "from": {
        "node": "ringBand",
        "output": 0
      },
      "to": {
        "node": "rectify",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clock",
        "output": 0
      },
      "to": {
        "node": "opens0_11",
        "input": 0
      }
    },
    {
      "from": {
        "node": "opens0_11",
        "output": 0
      },
      "to": {
        "node": "knockOpen",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "opens0_11",
        "output": 0
      },
      "to": {
        "node": "swingOpen",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "wood",
        "output": 0
      },
      "to": {
        "node": "woodHigh",
        "input": 0
      }
    },
    {
      "from": {
        "node": "woodHigh",
        "output": 0
      },
      "to": {
        "node": "knockOpen",
        "input": 0
      }
    },
    {
      "from": {
        "node": "knockOpen",
        "output": 0
      },
      "to": {
        "node": "knock",
        "input": 0
      }
    },
    {
      "from": {
        "node": "knock",
        "output": 0
      },
      "to": {
        "node": "rectify",
        "input": 0
      }
    },
    {
      "from": {
        "node": "rectify",
        "output": 0
      },
      "to": {
        "node": "swingDrive",
        "input": 0
      }
    },
    {
      "from": {
        "node": "swingDrive",
        "output": 0
      },
      "to": {
        "node": "swingClip",
        "input": 0
      }
    },
    {
      "from": {
        "node": "swingClip",
        "output": 0
      },
      "to": {
        "node": "swingOpen",
        "input": 0
      }
    },
    {
      "from": {
        "node": "swingOpen",
        "output": 0
      },
      "to": {
        "node": "swing",
        "input": 0
      }
    },
    {
      "from": {
        "node": "swing",
        "output": 0
      },
      "to": {
        "node": "rimHigh",
        "input": 0
      }
    },
    {
      "from": {
        "node": "rimHigh",
        "output": 0
      },
      "to": {
        "node": "pickRimshot",
        "input": 0
      }
    },
    {
      "from": {
        "node": "pickRimshot",
        "output": 0
      },
      "to": {
        "node": "level",
        "input": 0
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "clavesFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clavesFrequency",
        "output": 0
      },
      "to": {
        "node": "claves",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "one",
        "output": 0
      },
      "to": {
        "node": "clavesBandFrequency",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clavesBandFrequency",
        "output": 0
      },
      "to": {
        "node": "clavesBand",
        "param": "frequency"
      }
    },
    {
      "from": {
        "node": "kind",
        "output": 0
      },
      "to": {
        "node": "whenClaves",
        "input": 0
      }
    },
    {
      "from": {
        "node": "whenClaves",
        "output": 0
      },
      "to": {
        "node": "pickClaves",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "opens0_11",
        "output": 0
      },
      "to": {
        "node": "clackOpen",
        "param": "gain"
      }
    },
    {
      "from": {
        "node": "claves",
        "output": 0
      },
      "to": {
        "node": "clavesBand",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clavesBand",
        "output": 0
      },
      "to": {
        "node": "clackOpen",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clackOpen",
        "output": 0
      },
      "to": {
        "node": "clack",
        "input": 0
      }
    },
    {
      "from": {
        "node": "clack",
        "output": 0
      },
      "to": {
        "node": "pickClaves",
        "input": 0
      }
    },
    {
      "from": {
        "node": "pickClaves",
        "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": 5,
          "value": "1",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "knock",
      "label": "Knock",
      "target": {
        "node": "knock",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "0.7",
          "curve": "step"
        },
        {
          "time": 40,
          "value": "0.0001",
          "curve": "exponential"
        }
      ]
    },
    {
      "id": "swing",
      "label": "Swing",
      "target": {
        "node": "swing",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "1.7",
          "curve": "step"
        },
        {
          "time": 10,
          "value": "0",
          "curve": "linear"
        }
      ]
    },
    {
      "id": "clack",
      "label": "Claves",
      "target": {
        "node": "clack",
        "param": "gain"
      },
      "breakpoints": [
        {
          "time": 0,
          "value": "0.7",
          "curve": "step"
        },
        {
          "time": 40,
          "value": "0.0001",
          "curve": "exponential"
        }
      ]
    },
    {
      "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": "kind",
      "label": "Kind",
      "values": [
        "rimshot",
        "claves"
      ],
      "default": "rimshot",
      "targets": [
        {
          "node": "kind",
          "param": "gain"
        }
      ]
    }
  ],
  "sampleSlots": [],
  "createdAt": "2026-11-18T00:00:00.000Z"
}