Logo of groovebox

groovebox

Groovebox with drum machines and synthesizers, pattern sequencer and example songs.

Audio Windows macOS Linux
Screenshots coming soon

What it is

groovebox 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.

How it works

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.

Main features

  • 31 sound engines: classic-style drums, basses (acid, mono, sub), leads (four-operator FM, wavetable, organ, vocal), pads, plucked string and sampler.
  • Sampler with multisampled instruments, fed by a shared library of packs with their licence marked.
  • Sequencer with up to 32 tracks and 16 patterns, with per-track length, swing, probability, ratchet, accent and slide.
  • Song mode with a chain of up to 64 patterns, time signatures other than 4/4 and per-pattern tempo with ramps.
  • Per-track mix with volume, pan, sends, mute and solo; kick ducking, tempo-synced stereo delay, reverb and master with drive.
  • Factory presets per engine and your own presets.
  • Export to WAV, FLAC and MP3, with gapless looping, normalisation, repeats and one file per track (stems).
  • Command-line renderer that uses the same engine.
  • Sample generation with a local AI model server, at the song's tempo and in its key.
  • MCP server for composing with an AI assistant, with analysis of the rendered audio.

Technology

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.

Limits

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.