Pitch shifting

On this page 8

Pitch shifting is an audio effect that raises or lowers the perceived pitch of a sound by a chosen interval, usually while keeping its duration unchanged. Among audio effects, it covers everything from subtle detuning by a few cents to octave jumps, harmonies and dramatic voice transformations.

The simplest pitch change, playing a recording faster or slower, also changes its length. Modern pitch shifters decouple pitch from time, which makes them close relatives of time stretching: both rely on the same algorithms, applied in opposite directions.

How pitch shifting changes frequency

Pitch shifting changes frequency by a constant ratio, not by a fixed number of hertz. Raising a sound by one octave doubles every frequency component, and in equal temperament one semitone corresponds to a ratio of about 1.0595, the twelfth root of two. Fine shifts are expressed in cents, with 100 cents per semitone.

IntervalShiftFrequency ratio
Detune5 to 15 centsAbout 1.003 to 1.009
Semitone1 semitoneAbout 1.059
Minor third3 semitonesAbout 1.189
Perfect fifth7 semitonesAbout 1.498
Octave12 semitones2.000
Octave down-12 semitones0.500
Common pitch shift intervals and frequency ratios

Resampling, also called varispeed, achieves this by reading samples faster or slower. It is clean and simple but changes duration by the same ratio: an octave up plays in half the time. Every other technique must therefore remove or repeat audio material, or rebuild it from a spectral representation, to keep the length fixed.

Pitch shifting algorithms

Pitch shifting algorithms fall into time-domain and frequency-domain families, plus newer model-based approaches. Each family handles some material well and struggles with other types.

MethodPrincipleStrengthTypical weakness
Resampling or varispeedChange playback rateNo processing artifactsDuration and tempo change
Granular or overlap-addResample short grains and overlap themLow latency, simpleWarbling and doubled transients
PSOLARepeat or drop pitch periodsNatural results on voiceNeeds clear periodic signals
Phase vocoderShift frequencies in short-time spectraHandles complex mixesPhasiness and smeared transients
Model-based or neuralAnalyze and resynthesize the signalFormant and timbre controlHigher latency and computation
Main pitch shifting methods and their behavior

Most professional tools combine methods. They detect transients and handle them separately, preserve phase coherence between neighboring frequency bins and adjust window sizes to the material. Monophonic modes tuned for single voices or instruments usually sound cleaner than general polyphonic modes.

Formants and the chipmunk effect

Shifting all frequencies by the same ratio also moves the formants, the resonant peaks of the vocal tract or an instrument body that define its character. Raising a voice by several semitones makes it sound small and cartoon-like, the familiar chipmunk effect; lowering it produces an exaggerated, giant-like tone.

Formant preservation solves this by separating the spectral envelope from the harmonic structure. The algorithm shifts the harmonics to the new pitch but keeps the envelope in place, so the voice changes note while retaining its natural size. Many tools also offer a separate formant shift control, which can make a voice sound larger or smaller without changing pitch.

As a working guideline, shifts of up to about two or three semitones with formant preservation usually remain natural on solo voices. Larger intervals reveal artifacts more readily, especially on breathy or noisy material.

Several neighboring effects use pitch shifting internally or are easily mistaken for it. The table clarifies what each one changes.

EffectWhat it changesRelationship to pitch shifting
Pitch shiftingPitch by a fixed intervalBase process
Time stretchingDuration without pitch changeSame algorithms, inverse use
Pitch correctionPitch toward the nearest target noteDetection plus variable pitch shift
HarmonizerAdds shifted copies to the originalSeveral pitch shifters in parallel
VibratoPeriodic pitch modulationModulated delay rather than fixed shift
ChorusSlightly detuned, delayed copiesSmall, moving pitch differences
Pitch shifting compared with neighboring audio effects

The essential difference from pitch correction is that a pitch shifter applies a predetermined interval, while a correction tool continuously measures the input and calculates a different shift for every moment.

Using pitch shifting in production

Pitch shifting has both corrective and creative uses. Engineers apply it to fix transposition problems, while sound designers and musicians use it to create textures that no instrument produces directly.

  • Transposing material to a new key, for example adapting a sample or backing track for a singer.
  • Stereo widening by detuning left and right copies by about 5 to 10 cents in opposite directions.
  • Harmony and octave layers for guitar, bass and vocals.
  • Sound design, such as lowering animal sounds or impacts by an octave for larger creatures and objects.
  • Shifting a whole mix by small amounts for broadcast or playback-speed compensation.

Latency is the main practical constraint in live use. Frequency-domain algorithms need analysis windows of tens of milliseconds, which is noticeable to a performer, so live pedals and monitoring paths rely on low-latency time-domain methods, while offline processing in a DAW can use slower, higher-quality modes.

Artifacts and common mistakes

Pitch shifting artifacts become audible when the algorithm does not suit the material or the interval is too large. Recognizing them makes it easier to choose another mode.

  • Smeared or doubled transients on drums: switch to a transient-preserving or rhythmic mode.
  • Metallic phasiness on dense mixes: use a polyphonic mode with larger windows or shift stems separately.
  • Warbling on sustained notes: the grain size does not match the pitch period of the source.
  • Unnatural voice size: enable formant preservation or adjust the formant control.
  • Repeated processing: shifting the same audio several times stacks artifacts, so apply one combined shift.

A plain-language summary

Pitch shifting makes a sound higher or lower without making it faster or slower. A song can move to a new key while the tempo stays the same.

An old tape played faster sounds higher but also speeds up. Pitch shifting separates those two changes. The best tools also keep a voice sounding like the same person, so a singer moved up a little does not sound like a cartoon.

An example from practice

A singer preparing for a live show finds that a backing track recorded in E major sits too high for her voice after an illness. The music director needs the same arrangement two semitones lower, in D major, without changing the tempo that the band and lighting cues follow.

The engineer processes each stem separately in a DAW, using a polyphonic high-quality mode for keyboards and strings, a transient-preserving mode for percussion and formant preservation for the backing vocals. Shifting stems instead of the full mix keeps drums crisp and avoids phasiness, and the new track matches the original timing exactly.