tyler jones / jnsy
Drawing of one line splitting into three bands, high, mid and low, with an amber line pinning all three at 2:14

Stem Notes

Feedback on a mix that lands at the exact second, and on the exact stem, it's about.

what
web app, 2026
my part
product and design, from years of mixing; built with Claude as the engineer
built with
typescript · next.js · web audio · web workers · indexeddb · playwright

notes on the making

Mix feedback usually arrives as a message: "the snare's a bit loud around two minutes, and the vocal gets lost in the last chorus". Then someone scrubs around trying to find what "around two minutes" meant, and which part "the vocal" covers when there are four vocal stems. I worked as a music producer and sound engineer for six years, and wanted the note to sit on the waveform, at the second, on the part.

Stem Notes is that: drop in a mix or a folder of stems, play them back locked together, and pin notes to a moment or a range, on one stem or the whole mix. There are no accounts and no server. Everything runs and is stored in the browser, and it lives at notes.jnsy.studio.

01who it's for

Two people. The one mixing, who needs to find each note fast and get back to work. And the one listening back, who has opinions about the mix but no session in front of them. Every call below serves one of them.

02the calls that shaped it

No accounts and no server. The audio never leaves the machine, there's nothing to sign up for, and nothing to pay to run. The trade-off is real: no syncing between computers, and sharing had to work with nowhere to store anything.

So the notes travel in the link itself, after the #, the part of an address a browser never sends to a server. Links get unreliable in mail and chat apps past about 8,000 characters, so long ones fall back to a .stemnotes file. A reply with notes ticked done updates the original rather than doubling it up, and an import never deletes anything.

Meet people in the tools they already use. Mute and solo follow DAW rules, the shortcuts follow DAW habits, and notes export as a MIDI file of markers. That file asks for the project's tempo, because MIDI counts beats, not seconds, and markers would otherwise land in the wrong place.

Keep comparisons fair. Louder nearly always sounds better, so a reference track is turned to the mix's loudness before you flip between them with R. You're comparing tone and balance, not volume.

Build it in an order that ships. Single tracks first, then stems, then getting notes out, then listening tools: looping, zoom, the reference A/B and note search. Each phase went live on its own, and older projects upgrade in place, so nobody loses a note when the next phase lands.

03what's waiting

The next big piece is a plugin for the DAW itself, so the mixer sees the notes against their own playhead without leaving the session. After that: a PDF export, limits and pinning for the session library, a bundled demo session, and styling to match this site.

how it's built

01seeing a mix

A plain waveform tells you where it's loud, not what's loud. Stem Notes draws a band-split waveform, rekordbox-style: lows below 200 Hz in red, mids in green, highs above 2.5 kHz in blue. Each band comes from two cascaded biquads (24 dB per octave) on a mono sum, measured in 10 ms slices.

Colour is relative to the track. Each band is normalised to its own 90th percentile, then the strongest band at each moment is fully saturated, with a slight curve so mixed content reads as a blend rather than a muddy grey.

Height isn't peak amplitude. It's loudness in LUFS, with faint reference lines at −6, −9, −14 (the usual streaming target) and −23 behind it, so you can see at a glance where a chorus pushes past what a streaming service will turn down.

A loudness line across a song against reference lines at -6, -9, -14 and -23 LUFS, with -14, the streaming target, in amber

Stems taught me one thing here. My spec coloured each stem against its own levels. On a bass stem, the tiny bit of treble got boosted to match the bass, and the lane came out white instead of red. Colouring every stem against the mix's band levels fixed it: bass reads red, hats read blue, and the colours mean the same thing in every lane.

02measuring loudness properly

If the numbers are going to sit next to someone's mix, they have to match the meters engineers trust. Loudness follows ITU-R BS.1770-4: a K-weighting filter (a high shelf and a high-pass, with exact coefficients for any sample rate, derived the same way as libebur128), mean square over 400 ms windows for momentary loudness and 3 seconds for short-term, and two gates for integrated loudness.

const absGated = momentaryPow.filter((p) => toLufs(p) > -70);
const relThreshold = toLufs(mean(absGated)) - 10;
const integrated = toLufs(mean(absGated.filter((p) => toLufs(p) > relThreshold)));

The header shows integrated loudness, maximum short-term and momentary, and sample peak. The DSP is pure functions with unit tests built from the EBU Tech 3341 test cases, and integrated loudness was checked against ffmpeg's ebur128 filter.

03keeping stems locked

Sixteen stems that drift a few milliseconds apart stop sounding like a mix. Pressing play on each AudioBufferSourceNode in turn would let exactly that happen, so the engine builds every source first, then starts them all on one shared moment of the audio clock, 50 ms ahead.

const when = this.ctx.currentTime + START_DELAY; // 0.05 s
for (const l of this.lanes) {
  l.source.start(when, Math.min(this.offset, l.buffer.duration));
}

It's a conductor counting everyone in rather than each player starting when they're ready. Pause and seek stop every source and start them again the same way, so they stay sample-locked however much you jump around. Loops use the same idea: every stem gets the same loop points and start moment, and the browser's audio engine does the wrapping, sample by sample.

Drums, bass, keys, vox and fx lanes all start from one amber line, one tick 50 ms ahead

Mute and solo follow DAW rules, because that's what anyone mixing expects: if anything is soloed, only soloed stems play, and mute always wins. Each change ramps the gain over about 5 ms, fast enough to feel instant and slow enough not to click. Keyboard shortcuts follow the same habits: space to play, M and S on the focused lane, 0 to clear everything.

04big sessions in a browser

A folder of 16 long stems is a lot of audio for a browser tab. Import works through them one at a time, and splits the work by what each thread can do. decodeAudioData isn't available in workers, so decoding stays on the page. Measuring goes to a small pool of Web Workers (up to three, one fewer than the machine's cores), reused across stems rather than started fresh for each.

Stems decoded one at a time on the page line, each handing its measuring down to one of three worker lines, drawn in amber

The mix lane is the stems summed, which happens inside one worker as stems arrive, so it never holds them all at once; jobs for the sum are pinned to that worker. It's a sum of the stems, not the mastered bounce, and the numbers in the header come from it.

A few checks guard the session. Stereo files whose left and right are identical are kept as mono, halving their memory. Stems shorter than the rest by more than 50 ms get a warning, since they were probably bounced from a different start point. Sessions over about 1.5 GB of decoded audio get a memory warning before anything is decoded, read from the WAV and AIFF headers. Names are tidied (03_Vox Lead_bounce.wav becomes "vox lead") and a kind is guessed from them, which lanes are grouped by when there are no track numbers.

Analysis runs once per file and is saved, so reopening a session only decodes the audio.

05keeping it local

Projects, notes and per-stem audio live in IndexedDB. Adding stems changed the shape of saved data, so the database is versioned and upgrades old projects in place the first time it opens, instead of throwing them away. The site is a static export on Vercel, with nothing on a server to run or pay for.

06testing

Pure parts (DSP, stem naming and mute and solo rules, header reading, the database migration) have unit tests under node --test. A Playwright test builds the real site, drops in generated stems, and checks that every stem was given the same start time on the audio clock, before and after a seek, then works through solo, stem notes and reopening the session. A second test opens a stored single-track project and checks it upgrades with its notes intact.

That test failed once for the right reason. It expected a generated kick to be stereo, but the kick had been generated with identical channels, so the app correctly stored it as mono. The bug was in the test data. Another small one: stem lanes sat 5 px out of line with the mix lane because one area reserved room for a normal scrollbar and the other used a thin one.

Builds use webpack rather than Turbopack, which currently copies the analysis worker as a raw .ts file instead of compiling it.