Sax Lab ๐ŸŽท

An ML tutor for the instrument I practice at night. Real-time pitch detection written from scratch (autocorrelation โ€” no libraries), grading long tones, intonation and stability. Everything runs in your browser: no server, no uploads, no cost.

autocorrelation pitch detection 0 dependencies on-device audio

CONTROLS

mic requires HTTPS (or localhost). nothing is recorded or uploaded โ€” analysis happens in this tab.
โ€”
play something
โ€”
Hz
โ€”
clarity

PITCH TRACK โ€” live

your pitch nearest-note lane ยฑ50 cents window

HOW PITCH DETECTION WORKS HERE

The mic's PCM buffer is correlated against itself at every lag; the first strong peak after the direct signal is the note's period, and parabolic interpolation sharpens it to sub-sample precision. ~60 detections/second, all in this tab.

WHAT THE GRADES MEASURE

  • duration โ€” breath support over the hold
  • drift โ€” median cents from the note (embouchure consistency)
  • ฯƒ stability โ€” how flat the pitch line is (air control)

NO SAX? TRY IT ANYWAY

Hit play test tone โ€” a synthesized reed-like tone with vibrato and slow drift runs through the same detector. Whistle or hum instead if you prefer being the instrument.