Browser-based audio tool · note-by-note pitch correction

Vocal Pitch Correction

Load a solo vocal, let the page find its notes, and pull them to a key and scale, or drag individual notes on a piano roll. The shift moves each note by one amount, so vibrato stays, and a time-domain method keeps the vowel colour. It works on one voice at a time and leaves breathy parts alone.

Vocal

One voice, up to 3 minutes. Stereo files are mixed to mono.

Drop a solo vocal or click to choose

.wav, .mp3, .m4a, .flac

Load a vocal to see its notes on a piano roll, choose a key and scale, and hear the result before saving.

Vocal Pitch Correction

Operator: Abdulla Al Fahad. How tools are built and checked

A lead vocal with three notes a quarter-tone flat does not need a plug-in chain; it needs those three notes moved by the right amount and nothing else touched. Every note in a solo vocal is found, shown on a piano roll, and moved to the nearest note of a key and scale, or to a note you drag it to.

Each note moves by a single shift, so the wobble of its vibrato survives, and the shift is done in the time domain, one voice period at a time, so a vowel keeps its colour instead of turning chipmunk or monster. The cost is honest limits: it handles one voice, it works best for shifts under about four semitones, and it leaves breathy stretches alone.

The result plays against the original, and downloads as a mono 24-bit WAV.

Key features

  • Pitch tracking with a probabilistic voiced and unvoiced decision, from 65 Hz to 1,000 Hz
  • Notes found automatically, with a guess at the key from the notes' lengths
  • Snap to chromatic, major, natural minor, major or minor pentatonic in any of the twelve keys
  • Correction strength from 0 to 100%, retune time from instant to 400 ms, and a shift limit of 1 to 6 semitones
  • A piano roll to drag any note to a new target, and a table with buttons and a bypass tick for each note
  • A before and after pitch line drawn on the roll, an A and B player, and a 24-bit WAV export
  • A warning when the file looks like more than one voice
  • Shifts by TD-PSOLA, which keeps the spectral envelope of each grain

How notes are found and moved, and where the sound degrades

Input can be WAV, MP3, M4A, FLAC or OGG up to 3 minutes, at the file's own sample rate up to 48 kHz.

Stereo is mixed to one channel, and the output is a mono 24-bit WAV, so a stereo take loses its image and any stereo effects on it are folded together.

The input should be a dry, isolated solo take. Reverb tails, harmonies, double-tracking and backing singers confuse the tracker, and the page warns when about 15% or more of the pitched frames show a second unrelated pitch.

The note table lists up to 400 notes with their time, the note as sung with its cents offset, the target, and a bypass tick; the piano roll covers all notes. A bypassed note, or one whose frames were too unclear to move, is left exactly as sung.

How it works

The recording is low-pass filtered and reduced to about 16 kHz for tracking. Every 10 ms the YIN difference function of de Cheveigne and Kawahara (2002) over a 64 ms window gives several candidate periods. A Viterbi search over 20-cent pitch bins plus an unvoiced state, in the manner of pYIN (Mauch and Dixon, 2014), picks the most probable path, which removes octave jumps and isolated dropouts. The value is refined to the candidate nearest the chosen bin.

Voiced runs become notes. A run is split where the pitch moves to a new level (four frames at least 0.7 semitone from the ones before) or drifts more than 0.6 semitone from the note so far, which cuts a glide into steps. Runs under 60 ms are dropped. A note's centre is the median of its pitch in fractional MIDI notes.

The target of each note is the nearest note of the chosen scale (or your dragged value). Its shift is the target minus the centre, times the strength, within the limit. Every frame of the note gets that same shift in cents, smoothed in time by the retune setting, so vibrato around the centre is preserved.

For the shift, pitch marks are placed on the waveform's peaks at the tracked period. Around each mark a Hann-windowed grain two periods long is cut, the grains are respaced at the new period and overlap-added, and the result is divided by the sum of windows. Stretches that are not voiced, or that are too unclear, are copied unchanged, and each shifted stretch is faded in and out over 10 ms.

Common use cases

  • A singer snaps a 40-second lead to D major with a 40 ms retune time and bypasses a breathy whispered line.
  • A producer drags the fourth note of a chorus up by one semitone on the piano roll instead of re-recording it.
  • A voice-over artist sets correction to 30% to ease one sliding note without making it sound corrected.
  • A songwriter loads a hummed demo, uses Guess the key, and fixes the three notes that are over 30 cents off.

How to use this tool

  1. Drop a solo vocal and wait while the pitch is tracked; the notes appear on the piano roll.
  2. Press Guess the key, or choose the key and scale yourself.
  3. Adjust the strength, retune time and shift limit; drag notes, or bypass the ones you want left alone.

Example

A synthetic vowel sung at A3 plus 40 cents, with a fixed 700 Hz and 1,200 Hz formant pair, 2.5 s long

Chromatic scale, strength 100%, retune instant, shift limit 4 semitones

Pitch of the corrected vowel

The note is found at MIDI 57.40 (57 is A3) and moved to 220 Hz
Median error against 220 Hz when the corrected vowel is tracked again: -0.14 cents

Tips for best results

  • Set the retune time between 40 and 120 ms for natural singing. Instant retune gives the hard, stepped sound that is sometimes a style, and 400 ms leaves quick corrections unfinished.
  • Put the shift limit at 2 semitones for a first pass; a note that wants more than that is usually a wrong note, not a flat one.
  • Bypass the first and last note of a phrase if they sit in breath: the tracker has the least to go on there.

Common pitfalls

Fast runs and notes shorter than about a tenth of a second give the shifter few periods to work with, and can sound buzzy; bypass them.

Two voices or a harmony stack will be mis-tracked, and the correction may pull one toward the other. There is no polyphonic mode.

Large shifts, past about four semitones, change the perceived size of the vocal tract because grains of different width are respaced.

Common errors and how to fix them

No sung or spoken pitch was found
Use a take with a clear, pitched voice; a silent or very noisy file, or one under a quarter of a second of pitch, has nothing to track.
The file is longer than 3 minutes
Cut it into phrases and correct each part separately.
Frames needed a shift but were left as sung
They were too breathy or unclear to track with confidence. Bypass them deliberately, or re-record the phrase closer to the microphone.

Best practices

  • Correct before adding reverb or delay on the voice; the effects tails are what the tracker cannot follow.

How close the correction lands

On clean synthetic vowels, whose pitch is known exactly, a steady note 40 cents sharp of A3 lands on 220 Hz within a fraction of a cent, and five notes detuned by up to 45 cents each land within 0.2 cents of their chromatic targets. With a 25-cent vibrato the spread of the pitch falls from about 15 cents to 12 cents, so most of the vibrato survives, though not all of it. A real voice has noise, breath and changing vowels and will do worse; no recorded singing dataset was used.

A glide is cut into steps, and with the default retune time the corrected steps sit within about 17 cents of the nearest semitone, not on it, because the retune time smooths the correction. Formants stay where they were because each grain keeps its own spectral envelope: shifting a vowel up five semitones moves the pitch but not the formants, where plain resampling would drag them up with the pitch.

Frequently asked questions

Is this like Auto-Tune?

It does the same job of moving notes to a scale, with a retune time and a manual piano roll, but it is far simpler: one voice, one pass, no formant control and no live mode.

Why did one long slide turn into several notes?

A run is split wherever the pitch settles at a new level or drifts more than 0.6 semitone from the note so far, so a glide becomes a short staircase. Each step is corrected to its own target, and you can bypass any of them.

Can I fix a harmony or a choir?

No. It follows one pitch at a time. Correct each part from a separate isolated recording.