Six stems. Six speakers. Six channels of light. The app already separates — now it sends every stem to its own real-world device. No latency. No compromise. A listening room built from your music.
The app already gives you 6 isolated stems with live spectrum monitors, video sync, chord detection, and a full multitrack deck. Hardware upgrade adds a physical layer: discrete channel audio output to real speakers and real-time lighting control from the same frequency data you're already seeing.
Each stem routes to its own physical output on a professional USB audio interface. Vocals from one speaker, drums from another — spatial separation in the room, not just the DAW.
Every stem's amplitude and frequency envelope — already computed for your monitor visuals — drives real DMX fixtures. Amplitude = brightness. Frequency = color. Transients = strobe.
No summing. No virtual bus. Each AI-separated stem flows through its own analog output on a multi-channel USB interface directly to a dedicated monitor. A 1-to-1 physical mapping of your multitrack session.
Each stem's decoded PCM flows renderer → engine through a zero-copy ring buffer and out of its own output on the interface. 32-sample ASIO buffer @ 48 kHz → 0.67 ms driver latency. All six stems start sample-aligned on one device clock — zero inter-stem skew.
The interface operates in ASIO exclusive mode — audio bypasses the Windows mixer entirely. No kmixer re-sampling, no system audio latency. The output clock is the interface's own crystal. Bit-perfect.
Position monitors in the room for a true stereo field that extends across all 6 channels. Vocals center-front, drums right, bass left-rear, guitar right-rear — a 3D mix that software panning cannot replicate.
The monitor windows already show real-time FFT data per stem. That same data — amplitude envelope and frequency centroid — drives a MIDI envelope follower, which outputs to DMX lighting fixtures. The music writes the light show.
Each stem's RMS amplitude (from the existing AnalyserNode) maps to MIDI CC 1 (Mod Wheel) on its own MIDI channel. Quiet = dim, loud = full. The DMX fixture's master dimmer follows this envelope.
The spectral centroid (brightness of the stem's sound) maps to MIDI CC 74 (Color). Low frequencies → warm/red. High frequencies → cool/blue. A bass drop turns the fixture purple; a vocal swell shifts it amber.
Onset detection on the amplitude envelope triggers a MIDI Note On on the drum channel. This can fire a DMX strobe channel or a flash effect. Kick hits = white flash. Snare hits = accent pulse.
Where the time goes, in both paths — and the design choices that shrink each stage. The goal isn't magic: it's removing the layers that add nothing.
| Stage | Where it lives | Naïve latency | Hardware mode design |
|---|---|---|---|
| Render quantum | Web Audio, renderer | 2.67 ms | AudioWorklet reads decoded PCM into a SharedArrayBuffer ring — no graph hop |
| Copy: renderer → engine | IPC | 0.1–0.5 ms | zero-copy ring buffer: ~0.02 ms |
| Driver period | ASIO / WASAPI exclusive | 1.33 ms @ 64 smp | 32-sample buffer → 0.67 ms (or 64 smp @ 96 kHz) |
| USB transport + firmware | Interface hardware | 0.3–1.0 ms | one 8-out device, single multichannel stream = one clock |
| DAC + analog stage | Interface hardware | 0.4–0.8 ms | low-latency converters; no resampler in the path |
| Air: speaker → ear | Physics | 0.9 ms / ft | identical for all 6 stems → 0 ms skew between stems |
| Stage | Where it lives | Naïve latency | Hardware mode design |
|---|---|---|---|
| Detection window | AnalyserNode FFT | 21 ms lookback @ 2048 | time-domain onset in the AudioWorklet — 2.67 ms quantum, fires on the attack slope |
| Envelope math | RMS / centroid compute | 0.1 ms | same worklet, same quantum |
| MIDI encode + USB | MIDI interface | 0.5–1.0 ms | MIDI stays an optional tap for MIDI devices — DMX doesn't ride it |
| MIDI → DMX box | Converter hardware | 1–2 ms | direct USB-DMX (S2M dongle) — the stage is deleted |
| DMX frame | DMX-512 protocol | 22.7 ms full 512-slot universe | 6-channel short frames: 0.4–2 ms per refresh |
| Fixture decode + LED | PAR can | 1–5 ms | fast-PWM fixtures — LED response is near-instant |
All six stems ride a single multichannel stream on one interface. One master clock, sample-aligned starts — the stems cannot drift from each other. Absolute latency is the number on the spec sheet; relative skew is what your ears actually judge. That number is zero.
Optimized digital path: ~1.1–1.6 ms buffer → interface. Optimized light path: ~7–10 ms behind the beat — under the ~40 ms threshold where a human eye can detect light lagging a percussive hit. The beat and the beam land together.
Two purchase tiers. Audio only gets you 6 discrete monitor channels. Add MIDI/DMX and the room becomes a live performance stage. Prices are street estimates as of 2026.
Every component, every wire, every data path — from a YouTube URL to sound waves hitting your ears and light hitting your eyes. Click the labels to jump to a section.
The app is ready today. The hardware is available off-the-shelf. The routing engine is a software update away. If you can import a YouTube song, you can run 6 discrete channels of audio and light.
Start with a USB interface and 2 studio monitors — test the ASIO path with stereo. Add monitors as you grow. The interface holds all 10 outputs from day one.
One USB-DMX dongle and one PAR can proves the MIDI→DMX path. Add 5 more cans once the envelope follower is dialed in. The software handles 6 channels from the start.