// 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 · boot
  1. $ ./groove-lab --start
  2. loading tone.js .......... ok
  3. decks: 2   records: 6   pads: 8   eq presets: 8
  4. audio files: 0 · every sound is made by code
  5. status: ready to mix
Enya & the Emerald Tiger

Enya's signature move Diamond Flash

Her diamond necklace catches the light and shatters the Matrix for a moment.

$ ./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)

$ 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",
};