How a browser-based auto-tune works: pitch tracking, key detection and PSOLA
A developer working on a free in-browser auto-tune explains its internal pipeline, built from three pure functions that operate on Float32Arrays. The vocal is downsampled and analysed with the YIN algorithm every 10 milliseconds to track pitch, with a level gate that adapts to each file's peak after a fixed threshold silently failed on quiet recordings. Key is estimated from a histogram of pitch classes correlated against major and minor profiles, and users can override it and choose among seven scales. To avoid jittery retuning during vibrato, target notes must hold for 80 milliseconds or make a clear jump, while a one-pole glide controls retune speed. Pitch is shifted with time-domain PSOLA, which preserves formants and avoids the chipmunk effect.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in