Groovebox with drum machines and synthesizers, pattern sequencer and example songs.
Screenshots coming soongroovebox is a drum machine and synthesiser box with a step sequencer, for making electronic music from patterns. Each track picks a sound engine, its steps are programmed and the patterns are chained together into a song. Almost all the sound is its own synthesis; the sampler completes the set with sounds from a library. It includes example pieces to open and study.
The project is split into a reusable engine, with no interface or devices, and the application that uses it. The engine has a sample-accurate clock, processes audio without allocating memory and knows nothing about threads: the application hands it commands through lock-free ring buffers and reads its state without stopping the sound. The same engine renders offline, so what is exported is exactly what is heard.
Songs are saved as .groove.json. Besides classic steps, the format accepts a compact text notation, one symbol per sixteenth note, with notes, chord symbols, arpeggios, repeats, triplets and small off-grid shifts. With it, an AI assistant can write and correct songs through a bundled MCP server, which also «listens» to the result and returns a report on loudness, frequency bands, stereo, key, chords and tracks that mask each other.
Rust in three parts: the engine, the application built with egui and the house's shared theme, and the MCP server. Audio plays through cpal. The analysis (BS.1770 loudness, stereo, bands, key and chords) is written in pure Rust, as is FLAC encoding. MP3 uses LAME, which is not linked: it is loaded at run time if present, and without it only MP3 export fails.
Drum parameters are read when the hit is triggered: moving them while the voice is sounding changes nothing until the next one. In polyphonic engines, a single filter is shared by all the notes of a chord. FM is not band-limited and, with very high indices, can produce aliasing. Adding or removing tracks rebuilds the engine and stops playback, and choosing another pattern while playing queues it until the current one ends.
Ships no samples of its own: it uses the suite's shared library, with redistributable samples only.