EXPERIMENTAL CLATTER 12 compiles, links and runs in Plinky's emulator. It has not run on a Plinky 12. GITHUB ↗

CLATTER 12

CLATTER 12

The CLATTER drum machine, native to the Plinky 12.

Seven voices of authentic LXR drum synthesis, a generative sequencer and procedural kits on a 16 × 16 grid of pressure-sensitive pads. Seven pages: SEQ, SOUND, GEN, MIX, FX, and for playing live, PERFORM and REPEAT. A tempo pad on every page. One custom panel, built into Plinky's own firmware. Play it below: the page runs the panel's own code.

01 Play it

This grid is the panel's own interface: CLATTER 12's firmware source, engine and all, compiled to WebAssembly with a stand-in for the Plinky's API, so every pad does here exactly what it does in the firmware. Tap a pad to put a step in, press PLY (bottom right), and use row 15's first eight pads to change page. TMP (row 15) is the tempo: tap it in time, or hold it (Shift-click) for the tempo overlay. Hover or tap anything to read what it does, and what kind of control it is: momentary, toggle, continuous or destructive.

It is an interface demonstration, not a Plinky: no pressure sensor (the slider stands in), no Plinky output stage, no CPU limit, and it says nothing about how the hardware will perform. CLATTER 12's own delay and reverb (FX page, SPACE) do run here, as in the firmware; with FX ENGINE set to PLINKY the sends go to Plinky's effects, which are not here, so they fall silent.

A mouse has one pressure, so the slider stands in for how hard you press (a pen uses its real pressure): on REPEAT it is the repeats' velocity, rate or chance. Two-handed gestures (hold a step and tap the editor rows below it; hold TMP and tap the overlay; hold a page pad and tap another to copy) work with two fingers on a touch screen; with a mouse, Shift-click a pad to keep it held, and RELEASE HELD lets go. PERFORM and REPEAT pads are momentary: they last while held; their LAT pad (row 15) makes a tap hold instead. SAVE PROJECT downloads the very JSON the panel gives Plinky's save page.

02 What it is

Authentic LXR synthesis

The sound engine of Erica Synths' LXR-02 drum machine, unchanged, as in CLATTER and CLATTER Pocket. It runs at its own 44.14 kHz and is converted to the Plinky's 32 kHz, so pitch and decay stay exactly as the LXR makes them. It is not Plinky's synth with a new name. The page above runs this same code as WebAssembly.

6 VOICES · 7 TRIGGERS · VARIATIONS

SEQ: rhythm first

Seven LXR triggers by 16 steps. Tap a pad on, tap it off; hold it to edit it: variation, condition (1:2 to 4:4, chance), ratchet (2, 3, 4, 6 or 8 strokes, never closer than 12 ms) with a velocity curve (flat, fade in, fade out, accent first or last, alternating, human), and a roll: flam, drag, double or triple stroke, accelerating or decelerating. Flams and drags lead their step, so the hit stays on the beat. Stopped, every choice is played as you make it.

PRESSURE · CONDITIONS · RATCHETS · ROLLS

SOUND: the LXR, a row each

Every LXR parameter of the chosen voice, one row each, its value across the columns, in three banks: SOURCE, SHAPE, MOD. Menus show their options. Heard at once; audition without leaving.

33 PARAMETERS A VOICE · FINE ± · AUDITION

GEN: patterns and kits

CLATTER's pattern generator (eleven styles, density, complexity, mutation, one track at a time) and its kit designer: a new kit, a new sound, mutate a kit or a sound, with wildness, amount and locks. Every result is a new design, not a preset. Undo and redo.

PROCEDURAL · LOCKS · UNDO

MIX and FX

Channel strips: level, pan, mute, solo, delay and reverb sends, master. FX has two banks. SPACE: CLATTER 12's own delay (twelve tempo-synced divisions, feedback, a low/high-pass filter, wet, ping-pong, freeze) and reverb (size, decay, damping, wet, freeze); or send to Plinky's own effects instead. COLOUR: the LXR-02's own drive, ring modulator and compressor on the tracks you route, bit and sample-rate reduction, and a limiter.

REAL AUDIO · NOT JUST LIGHTS

PERFORM: hands on the beat

Momentary mutes and solos, kills (low, mid, high, all), fills that build to the bar, a temporary mutation, density thinner or busier, stutters, delay and reverb throws, freezes, and eight scenes recalled at the next bar. Everything lasts while held and leaves the pattern alone; LATCH holds it; COMMIT (held) writes it in, and UNDO takes it back.

MOMENTARY · LATCH · COMMIT · SCENES

PATTERNS: build, vary, chain

Tap the lit page pad: sixteen pattern slots over any page. Switch at the next step, the next bar or the pattern's end, sample-exact, effects ringing on. Duplicate a beat and edit the copy, try a variation of it, go back to the original in one tap. Chain slots with repeats, looping or once. All of it saved, older projects included.

16 SLOTS · QUEUED SWITCHING · CHAIN · UNDO

REPEAT and TEMPO

Hold a track to repeat it on the grid, straight, triplet or dotted, from 1/4 to 1/64, harder for louder (or faster, or more often), with a velocity curve. Roll pads play flams, drags and rolls by hand. Beat repeat loops the last bar, half, quarter, eighth or less of the sequence itself. TMP on every page: tap it in time, or hold it for the BPM, ±1/5/10, half and double time, presets and a nudge.

NOTE REPEAT · BEAT REPEAT · TAP TEMPO

03 Status

UNVERIFIED

Nothing here has run on a Plinky 12. The emulator and the desktop tests are the evidence so far.

WhereResult
Desktop testsPass. The engine matches CLATTER Pocket's reference build (spectra within 0.03 dB per band); the panel passes 293 scripted checks in CLATTER 12's simulator of the Plinky API (steps, conditions, ratchets and rolls, kits, mixer, both FX banks, tap tempo and the tempo overlay, PERFORM's release and COMMIT, scenes at the bar, REPEAT, the pattern bank and chain, the diagnostic pages, saving and loading old and new projects, undo), and 101 more time ratchets, rolls, repeats, fills, scenes, pattern switches and the delay and reverb to the engine's block. The hardware build compiles with warnings as errors at -O3, -O2 and -Os, in 1.7 KB of static SRAM.
Cortex-M33 compileCompiles for the RP2350's core with GCC: about 117 KB of code and 27 KB of constants for engine and panel, 41 KB of static SRAM besides the LXR's 100 KB of tables, the delay and reverb's 282 KB in PSRAM, no software double-precision anywhere.
CPU (an estimate)Tight. In QEMU's Cortex-M33 model the engine runs about 169,000 instructions per 2 ms audio block on average and 245,000 in the busiest (two LXR blocks): at 150 MHz at least 56 % and 82 % of the audio core before memory wait states. CLATTER 12's delay and reverb, when something is sent to them, add about 21,700 (7 %) and take the busiest blocks past the budget; off or idle they cost nothing, and FX ENGINE: PLINKY hands the sends to Plinky's own effects instead. Only a Plinky can say if it fits.
This pageRuns the panel itself as WebAssembly: the firmware's interface and engine, with a simulator standing in for the Plinky.
Plinky's emulatorRan the first version with no underruns. This version has not been tried there yet.
A Plinky 12Never run.
MIDI, CVNot built yet.

04 Try it

You need a computer and Plinky's code editor. No hardware.

  1. Get the source: git clone --recurse-submodules https://github.com/clickysteve/clatter-12
  2. Build the panel and run the tests: make. It writes build/clatter_12.cpp.
  3. Open Plinky's code editor (closed beta: access comes from their Discord), paste the file into a new tab, press Test.
  4. Play: PLY starts the beat, a hard press makes a loud step, holding a step lets the rows under it change it, TMP taps the tempo, and row 15 moves between SEQ, SOUND, GEN, MIX, FX, PERFORM, REPEAT and SAVE.
git clone --recurse-submodules https://github.com/clickysteve/clatter-12
cd clatter-12
make            # builds build/clatter_12.cpp and runs every host test

Don't flash a Plinky with it yet. The project's rules: no hardware claims without a device, and nothing touches the bootloader.