Phase 2

From Software to
Physical Sound

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.

Explore the Build → See the Hardware
Overview

What Changes with Hardware

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.

6-Channel Discrete Audio

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.

Stem → MIDI → DMX Lighting

Every stem's amplitude and frequency envelope — already computed for your monitor visuals — drives real DMX fixtures. Amplitude = brightness. Frequency = color. Transients = strobe.

What the App Already Does

  • YouTube import → Demucs 6-stem AI separation
  • Multitrack deck with per-stem volume, mute, solo
  • Live spectrum visualization (10 animation styles)
  • Video sync for up to 2 videos
  • Chord detection with fretboard display
  • Play queue, recording, project save/load
  • Full-screen monitor windows per stem

Hardware Upgrade Adds

  • 6 discrete audio output channels via USB interface
  • Per-stem ASIO/WASAPI exclusive-mode routing
  • Zero-latency direct monitoring
  • Physical speaker placement for spatial mix
  • Real-time envelope-to-MIDI conversion (6 channels)
  • Direct DMX-512 lighting output
  • 6 independent LED fixtures, one per stem
Phase 1 — Audio

Six Stems → Six Speakers

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.

See Song Studio
6 decoded stem buffers
USB Audio Interface
10 analog outputs · ASIO
Vocals
Drums
Bass
Guitar
Piano
Other

1. Decode & Route

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.

2. ASIO Direct Monitoring

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.

3. Spatial Speaker Layout

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.

Phase 2 — Lighting

Stem Audio → MIDI → DMX

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.

AnalyserNode FFT
Uint8Array · 1024 bins
Envelope Follower
Amplitude + Centroid → MIDI CC
MIDI CC Output
6 simultaneous CC streams
DMX Fixtures
6 PAR cans · RGB + strobe

Amplitude → Brightness

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.

Frequency → Color

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.

Transients → Strobe

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.

Engineering · Latency Map

Every Microsecond, Charged

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.

SOUNDPer-Stem Stack — 48 kHz reference

StageWhere it livesNaïve latencyHardware mode design
Render quantumWeb Audio, renderer2.67 msAudioWorklet reads decoded PCM into a SharedArrayBuffer ring — no graph hop
Copy: renderer → engineIPC0.1–0.5 mszero-copy ring buffer: ~0.02 ms
Driver periodASIO / WASAPI exclusive1.33 ms @ 64 smp32-sample buffer → 0.67 ms (or 64 smp @ 96 kHz)
USB transport + firmwareInterface hardware0.3–1.0 msone 8-out device, single multichannel stream = one clock
DAC + analog stageInterface hardware0.4–0.8 mslow-latency converters; no resampler in the path
Air: speaker → earPhysics0.9 ms / ftidentical for all 6 stems → 0 ms skew between stems

LIGHTPer-Stem Stack — envelope → DMX

StageWhere it livesNaïve latencyHardware mode design
Detection windowAnalyserNode FFT21 ms lookback @ 2048time-domain onset in the AudioWorklet — 2.67 ms quantum, fires on the attack slope
Envelope mathRMS / centroid compute0.1 mssame worklet, same quantum
MIDI encode + USBMIDI interface0.5–1.0 msMIDI stays an optional tap for MIDI devices — DMX doesn't ride it
MIDI → DMX boxConverter hardware1–2 msdirect USB-DMX (S2M dongle) — the stage is deleted
DMX frameDMX-512 protocol22.7 ms full 512-slot universe6-channel short frames: 0.4–2 ms per refresh
Fixture decode + LEDPAR can1–5 msfast-PWM fixtures — LED response is near-instant

One Clock. Zero Skew.

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.

Sound ≈ 1.2 ms. Light ≈ 8 ms. Invisible.

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.

Bill of Materials

Everything You Need

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.

1 Audio Chain

USB Audio Interface (8+ outputs recommended)

Focusrite Scarlett 18i20 Gen 4, Behringer U-Phoria UMC1820, or MOTU Ultralite Mk5. 10 analog line outputs — 6 for stems, 4 spare for expansion. Class-leading ASIO: stable 32-sample buffers → ~0.7 ms digital path.
$250 – $600

6 Active Studio Monitors

KRK Rokit 5 G4, JBL 305P MkII, Yamaha HS5, or Adam T5V. Powered (built-in amplification). Balanced TRS or XLR input. One per stem: vocals, drums, bass, guitar, piano, other.
$150 – $300 each · $900 – $1,800 total

6 Balanced TRS/XLR Cables

1/4" TRS to XLR (male) or TRS-to-TRS depending on monitor input. 10–15 ft. Balanced to reject hum over longer runs. Mogami, Hosa, or Monoprice.
$10 – $20 each · $60 – $120 total

2 MIDI + Lighting Chain

USB MIDI Interface

Roland UM-ONE Mk2, M-Audio Midisport 2×2. Provides a 5-pin DIN MIDI OUT port from the PC. The app sends 6 channels of CC data (one per stem) over this single cable.
$40 – $60

USB DMX Interface

Enttec Open DMX USB (basic) or DMXKing UltraDMX Micro (pro). Converts USB to DMX-512. Pro version has opto-isolation to protect the PC from DMX line faults.
$60 – $300

6 DMX LED PAR Fixtures

Chauvet DJ, ADJ, Shehds, or similar. LED PAR cans with RGBA or RGBW. Each fixture gets a DMX address (1-6) mapped to one stem. Daisy-chain via DMX cables.
$80 – $250 each · $480 – $1,500 total

DMX Cables & Terminator

5-pin XLR male-to-female cables for daisy-chaining fixtures. One 120Ω DMX terminator plug at the end of the chain to prevent signal reflection.
$15 – $30 total

Audio-Only Setup Total

$1,210 – $2,520
Interface + 6 monitors + cables

Full Audio + Lighting Total

$1,810 – $4,410
Audio chain + MIDI + DMX + 6 lights
System Diagram

End-to-End Signal Flow

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.

Full System
▶ YouTube
Demucs 6-Stem AI
6 PCM Buffers
Audio Path
PortAudio Stream
USB Interface
6 Speakers
MIDI / DMX Path
FFT → Envelope
MIDI CC
USB DMX
6 PAR Fixtures
Listening Room Audio IF DMX IF V D G P B O DMX Lighting Fixtures (6) Studio Monitors (6) USB from PC Audio signal DMX signal
Next Steps

Ready to Build?

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.

1. Buy the Audio Interface

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.

2. Add Lighting

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.