← (All work)(Project 05)

DJ AI

A beat-making studio in the browser with an AI copilot that actually edits the beat.

Role
Design & full-stack engineering
Year
2026
Type
Music / AI
Links
Private
DJ AI

DJ AI is a 16-step drum studio with a chord track, an FX rack and a copilot chat. Ask for "a dusty boom-bap groove in A minor" and the AI rewrites the drum grid, chords, tempo and effects directly. Upload a song you own and it measures its tempo, key, chords and sections to match the feel.

(Stack)
  • React 19
  • TypeScript
  • Tone.js
  • Web Audio
  • Web Workers
  • Web MIDI
  • Claude API

The problem

Chatbots can describe a beat, but they can't make one — you still have to translate their words into a sequencer by hand. I wanted an AI that works inside the instrument, not next to it.

How it works

The studio runs on Tone.js: eight drum lanes (kick, snare, clap, hats, perc, tom, 808) over 16 steps, plus a four-chord progression and filter, drive, delay and reverb. The copilot replies with compact JSON actions — setBpm, setPattern, setProgression, setFx — that are validated and applied to the project. Uploaded audio is analysed in a Web Worker in the browser: onset energy for BPM, chroma against key profiles for key, chord estimation and energy-based sections. Patterns can be sent out over MIDI to a DAW.

Decisions that mattered

  • The AI edits the project through typed actions, so every change is visible and undoable.
  • Audio never leaves the browser — the model only sees measured BPM, key and chords.
  • Built-in rules: original patterns only, never a recreation of a copyrighted recording.
  • A knowledge base of beat types, progressions and effects keeps the copilot musical.
(Read the story) An AI That Edits the Beat Instead of Describing It Oct 2026 · 6 min read →