← All projects
CodeMusic

GrainRhythm — a rhythmic granulator for weak_signal[processing]

Year2026
GrainRhythm — a rhythmic granulator for weak_signal[processing]

GrainRhythm is a granular synthesis plugin I designed and coded for weak_signal[processing], my duo with guitarist Pierre Bibault. It slices up whatever the guitar is playing in real time and redistributes it along tempo-locked Euclidean rhythms, so that the electronics answer the instrument instead of drowning it out.

The duo: a weak signal, two paths

weak_signal[processing] is a duo for electric guitar and live electronics. Everything starts from the few millivolts coming out of the guitar’s pickup. That signal takes two paths at once.

  • On the guitar side, a fully analogue chain of pedals and a valve amp gives Pierre the warm, dense, physical sound of the instrument.
  • On the electronic side, the same signal goes to the computer, where I sample it in tiny fragments. I shift them in time, move them around in space and layer them asymmetrically.

Nothing is prepared in advance: every electronic sound comes from what the guitar has just played. We are after a delicate electronics, almost like lace, that answers the guitar, contradicts it and sometimes runs ahead of it.

Pierre Bibault is a classical and electric guitarist, holds a doctorate in arts and teaches at the CRR de Paris. He has performed with the Ensemble intercontemporain and Klangforum Wien, and develops his own projects between electronics and artificial intelligence, such as EaLC and Still HI.

Why a custom tool

Most granulators treat sound as a cloud: they produce continuous, loosely articulated textures. In the duo I needed the opposite. I wanted fragments that fall in rhythm, with the tempo, and build polyrhythmic patterns as they stack up.

Everything also had to stay playable live, with no files to prepare, right inside Ableton Live. So I wrote GrainRhythm, a granulator in which rhythm is not an effect added afterwards but the very engine that triggers the grains.

What GrainRhythm does

  • LIVE. The plugin keeps the last ten seconds of the guitar in memory. Grains draw from it continuously, and the position sets how far back from “now” they read.
  • FREEZE. One button freezes those ten seconds. I can then dig into a moment Pierre played while he moves on to something else. CAPTURE saves that moment as a WAV file to reuse as material.
  • Four layers of Euclidean rhythms, locked to the host’s tempo with sample accuracy. Each has its own length, subdivision (up to quintuplets and septuplets), trigger probability, ratchets (bursts of repeats), pitch and region of the sound. Thirteen steps in triplets against sixteen in sixteenth notes: the overall pattern takes a long time to come back around.
  • SOLO. An abrupt switch from one layer to another, automatable, to break the flow in one go.
  • Reproducible randomness. Probabilities and ratchets are drawn from the position in the song: the same bar always yields the same pattern.

Playing together

The duo’s name describes the setup in the machine’s own language: a weak signal and, in brackets, what is done to it. It is a dialogue between two performers’ gestures, one on strings, the other on code, in which the machine remains an instrument to be played.

GrainRhythm is built for that kind of playing. Patterns are prepared beforehand, and during the concert I only have a few gestures to make: move the position, freeze, switch from one layer to another. The two sources end up blending to the point where you can no longer tell who started.

The duo has held a first working session, which was recorded.

Technical specs

LanguageC++17, JUCE framework
FormatsVST3 for macOS (Apple Silicon and Intel) and 64-bit Windows, standalone version
Granular engine128 simultaneous grains, Hermite interpolation, envelope adjustable from a rectangular to a Hann window
Rhythm4 Euclidean layers synced to the host’s playhead, swing, humanisation
LIVE mode10-second circular buffer, freeze, WAV capture
RecordingSource and output as 24-bit WAV, written to disk without blocking the audio thread
PerformanceAbout 500 times faster than real time on a single core

What’s next

The duo wants to move from stereo to multichannel diffusion with Holophonix, spatialise the guitar across two amps and try out artificial intelligence tools. GrainRhythm is the first building block of that setup: a digital instrument that listens to the guitar as much as it transforms it.