Composition / 02 Dec 2026Five notes against four beats with Sonic Pi
Sonic Pi’s new plugin lets a line of code play an instrument in your session. A five-note phrase over a steady kick makes a good first experiment in writing rhythm through repetition.
Image · NoiseditionKeep a kick on all four beats and play D, F, A, G and E in a continuous stream of eighth notes above it. Bar one begins on D. Bar two begins on G. The drummer hasn’t moved a single hit, yet the tune leans on a different note. It takes five bars for the start of the phrase to meet the downbeat again.
Sonic Pi has long let musicians describe such patterns in code. Its new plugin puts the code on a track alongside the drums in a DAW such as Ableton Live, Logic Pro or REAPER. Developer Sam Aaron dates the first release to November 27. Version 1.0.1 followed on November 28 with a fix for the built-in :piano instrument, which had been silent in the plugin.
To try the idea, leave the kick on its own track. Set up the repeating five-note sequence in Sonic Pi, advance half a beat after each note and enable sync so the passage starts with the session. Use a built-in sound or send MIDI to an instrument you already have in the arrangement. Keeping the same sound, take out the E. Four notes now fit twice into every bar. Adding the E back is a compositional decision you can hear before reaching for another synth preset.
Give the five-note version at least five uninterrupted bars. Restarting the phrase on every downbeat hides the effect. There’s also a practical format limit for anyone planning to use it in an existing session. The developer lists VST3 for Windows and macOS and Audio Unit for macOS. For a listen before installing, the official page plays DJ_Dave’s Blockgame and lets you switch to the Piano roll view while it runs.