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.
mic requires HTTPS (or localhost). nothing is recorded or uploaded โ analysis happens in this tab.
demo tone
A3 ยท 220 Hz โ vibrato + drift included
โ
play something
โ
Hz
โ
clarity
PITCH TRACK โ live
your pitchnearest-note laneยฑ50 cents window
RAGA โ free-play detection
โ
play freely โ I'll name the swaras
swaras heard (relative to your Sa):
swara time-share:
raga matches:
don't have your sax handy? analyze an audio file (stays on your device):
method: every sustained note is mapped to a swara sthana relative to your Sa; ragas are ranked by how much of your playing fits their swaras ร coverage. honest set-matching โ no black box. for uploaded files the tonic is estimated automatically. film songs with heavy accompaniment give approximate shortlists.
SARGAM โ sarali varisai (Carnatic)
Sa: A#3 โ the alto's base scale (pick any Sa from A# up to F#)
set your Sa (adharashadja), pick a melakarta, hit start โ sarali varisai up and down, every swara graded. I'll walk you up and down the scale and grade every note.
LONG TONES โ automatic grading
0.0s
current hold
โ
drift (median ยข)
โ
stability (ฯ ยข)
โ
last grade
๐ง YOUR INTONATION FINGERPRINT โ trained, on-device
warm-started on 600 synthetic saxophone profiles ยท personalized with 0 of your holds
grading: gold = 5s+ hold, |drift| < 10ยข, ฯ < 20ยข ยท silver = 3s+ ยท bronze = 2s+ ยท the rest: "try again tomorrow, the neighbours are counting on you."
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.