// music & sound fx · vue 3 + tone.js
Groove Lab
A DJ booth I built for the browser: two turntables, a mixer with EQ, effects and eight sound pads. Every record and sound effect is original, made by code when you press Start, so there isn't a single audio file to download. Mix the built-in records, or drop in your own tracks: they stay on your device.
- $ ./groove-lab --start
- loading tone.js .......... ok
- decks: 2 records: 6 pads: 8 eq presets: 8
- audio files: 0 · every sound is made by code
- status: ready to mix
$ ./groove-lab
the decks
Press Start audio, play both decks, then slide the crossfader between them. The ? button in the booth has tips and keyboard shortcuts.
Loading the decks… (they need JavaScript to run)
- Drop an audio file on a deck or a pad to mix your own sounds. They're decoded and played on your device: nothing is uploaded.
- The boombox up top dances to whatever you play: its speakers follow the left and right channels, and the bars of its mouth are a live spectrum of your mix. The Nova AI pad turns the code rain to colour.
- Best with headphones or speakers: a phone's own speaker can't reproduce the bass.
$ cat ./groove-lab/README.md
under the hood
There are no audio files here. Everything you hear is made in your browser.
The six records are short programs: drum patterns, bass lines and chords written out as code, then rendered by the Web Audio API in a second or so when you press Start. The pad sounds are synthesised the same way, from oscillators, noise and filters.
Each deck runs through its own three-band EQ, pan and volume fader, then the crossfader. The filter, echo and reverb sit on a shared effects bus, and a limiter guards the output so a loud mix doesn't distort. Every control glides to its new value over a few milliseconds, so nothing clicks.
The interface is built with Vue 3 and the mixer with Tone.js. It works with a mouse, a touch screen or the keyboard, rearranges itself for phones, and can be dropped into any web page with one line of HTML.
const grooveLab = {
interface: "Vue 3",
sound: ["Tone.js", "Web Audio API"],
decks: 2,
per_deck: ["3-band EQ", "pan", "pitch", "cue", "loop", "sync"],
effects: ["filter", "echo", "reverb", "limiter"],
eq_presets: 8,
records: 6, // composed in code
pads: 8, // synthesised, no samples
audio_files: 0,
uploads: "none: your tracks stay in your browser",
author: "AstroQuack",
};