16ch Block Random Switcher — a multichannel channel-hopping plugin for Reaper

While producing Mental Ghost, an immersive sound and light installation designed with Vincent Meurisse for a loudspeaker dome, I needed a tool that didn’t exist: an effect able to “channel-hop” randomly between several multichannel tracks, like a granular process applied not to a signal but to the choice of source itself. So I built it for Reaper, in two versions. This article traces the need, the technical choices and the architecture of the plugin — the 16ch Block Random Switcher.
The need: random listening between tracks, not within a track
The starting material: several 16-channel recordings meant for spatialised playback. The compositional intent was to jump randomly from one recording to another — hard cuts like channel-hopping, or shorter grains with fades — while preserving the spatial integrity of each source: when it switches, all 16 channels switch together.
That is exactly what existing tools don’t do. Commercial glitch and granular processors (Glitchmachines Fracture, Illformed Glitch2…) work on an already summed signal, and nearly all of them are stereo. Reaper’s native parameter modulation allows random fades between tracks, but without mutual exclusivity: you get a chaos of volumes, not channel-hopping. What was needed was a random, multichannel source selector, sampled at a controllable rate.
Why JSFX rather than a VST
I chose to write the plugin in JSFX, Reaper’s native audio scripting format, rather than as a C++ VST. Three reasons:
- Frictionless multichannel. A JSFX accepts up to 64 input/output channels declared in a few lines, whereas a multichannel VST requires much heavier bus handling — and most hosts make routing awkward beyond 5.1.
- The iteration loop. The code is a plain text file reloaded on the fly: edit, save, listen. In a residency, when the setup is installed for two weeks, that loop time matters more than anything.
- Transparency. The DSP fits in about a hundred readable lines, which anyone can modify to adapt the tool to their own setup — 24 channels, 32 channels, a different selection logic.
The accepted trade-off: the tool is tied to Reaper. For a creative setup where Reaper is already the central sequencer, that is a non-issue.
Architecture: 16-channel blocks on a 64-channel bus
In Reaper, a plugin cannot “pull” audio from other tracks: tracks send. The architecture therefore relies on a 64-channel bus hosting the plugin, onto which each source track is routed to a dedicated block:
| Element | Configuration |
|---|---|
| SWITCHER track (bus) | 64 channels, hosts the plugin |
| Source A | Send 1-16 → bus channels 1-16 |
| Source B | Send 1-16 → channels 17-32 |
| Source C | Send 1-16 → channels 33-48 |
| Source D (optional) | Send 1-16 → channels 49-64 |
| Plugin output | Channels 1-16, source blocks muted |
The DSP is deliberately simple. Each time a timer expires, the plugin draws a new source (with or without repetition allowed), computes the next interval — a base value ± a random deviation set as a percentage — then copies the selected 16-channel block to the output. The transition between outgoing and incoming blocks uses an equal-power crossfade (cosine/sine law) whose length is capped by the current interval: no clicks, even at extreme switching rates.
Four parameters are enough to cover the expressive range: the interval (10 ms to 4 s), its randomisation (0 to 100%), the crossfade length (hard cuts at 1 ms, morphs at 500 ms), and an automatable Freeze that holds the current source — invaluable live to “catch” a moment. Between 30 and 80 ms of interval, the effect tips from channel-hopping into a granular texture where the sources pulverise into one another.
V2: meta-randomness with two LFOs
The first version did the job, but its textures stayed statistically stationary: a constant switching rate ends up sounding like a fixed colour. V2 adds two independent LFOs, assignable to the switch interval and to its randomisation, each with five waveforms (sine, triangle, saw, square, random sample & hold), a rate from 0.01 to 10 Hz and min/max bounds defining the swept range.
Two design choices are worth noting:
- The LFOs are sampled at switch time, not continuously: each jump freezes the value that will determine the next one. A slow sine LFO on the interval thus produces waves — granular bursts, then release — the breathing effect I was after.
- The random S&H shape applied to the interval creates meta-randomness: the rhythm of chance itself becomes unpredictable.
The LFOs keep running during Freeze: when it thaws, modulation resumes where it is now, not where it was left. The interface shows in real time the active source, the current values of both modulated parameters and the phase of each LFO.
In the full chain: Reaper, RME, Holophonix
The plugin is only one link in an object-based spatialisation chain. On the working setup (Windows, RME MADIface, M-16 DA converter), the signal flows like this:
- The 16-channel source tracks feed the SWITCHER bus through sends.
- The bus sends the plugin’s 16 channels to MADI outputs 17-32, looped back internally by TotalMix FX’s Loopback function — a virtual cable that avoids any third-party software sound card.
- Holophonix Native reads those channels as inputs (17-32), spatialises them, and writes to MADI outputs 1-16, the only ones the converter decodes to the speakers.
The strict separation of channel ranges — 17-32 for virtual transport, 1-16 for physical playback — is what keeps the chain sound: a single clock, a single multi-client ASIO driver, no risk of feedback loops.
To capture a sequence, the bus output is recorded in real time to a 16-channel WAV (Reaper’s Record: output, multichannel mode) while I play with interval, randomisation and freeze: the recording becomes a performance in itself, and the takes become raw material for composition.
In the studio, monitoring goes through headphone binauralisation (SPARTA Binauraliser or similar) placed in Reaper’s Monitoring FX — never in the signal path — so that the project stays identical between the work desk and the dome.
What it changes in the writing
I hold that spatialisation is an element of composition, not a mixing technique. This plugin follows directly from that: chance here does not act on grains of signal but on whole spaces — each switch replaces one complete sound scene with another, each with its own image across the 16 channels. At slow rates, you inhabit places that follow one another; at fast rates, the places themselves become texture.
The tool is deliberately minimal: about a hundred lines of EEL2, six sliders, ten more in v2. It is meant to be modified — number of sources, block width, weighted selection logic — and I’m happy to share it with anyone working on multichannel setups.
The source code (v1 and v2) is available on request — and soon as a direct download here.