2ClickKit

Audio Pitch Shifter

Files Never Leave Your Device

Transpose musical pitch up or down without changing tempo. Fine-tune semitones and cents, toggle granular or tape varispeed mode, and export studio-quality WAV.

Drop audio track or click to browse

Supports MP3, WAV, AAC, M4A, FLAC, OGG · 100% Client-Side Processing

The Mathematics and Engineering of In-Browser Pitch Shifting

Altering the pitch of an acoustic waveform is one of the most intellectually fascinating challenges in digital signal processing (DSP). In the physical analog realm, pitch and playback duration are inextricably bound together: spinning an analog vinyl record or running magnetic audio tape at double speed cuts the duration in half and doubles the frequency of every sound wave, transposing pitch up by exactly one octave (12 semitones).

In modern music production, podcasting, and speech pathology, creators routinely require independent time-scale modification—changing pitch while strictly preserving temporal duration, or changing tempo while strictly preserving pitch. 2ClickKit implements high-performance client-side digital signal processing directly inside your browser memory using the Web Audio API and floating-point buffer manipulation.

Pitch Shifting Architectures: Granular Synthesis vs Varispeed Resampling

To deliver both creative flexibility and forensic precision, 2ClickKit provides two distinct digital processing engines:

  • Synchronized Overlap-Add (SOLA) Granular Engine: Divides incoming 32-bit floating-point audio data into brief micro-windows called "grains", typically between 30 and 50 milliseconds long. Each grain is multiplied by a raised-cosine Hanning or Tukey window envelope to attenuate boundary discontinuities. Grains are then overlapped and re-interleaved at modified sample-hop intervals. When overlapping occurs at higher rates, fundamental spectral peaks shift upward without altering the total running duration of the track.
  • Varispeed Resampling Engine: Emulates the physical mechanics of vintage reel-to-reel tape decks and variable-speed record turntables. The browser's native AudioBufferSourceNode or an OfflineAudioContext recalculates interpolated sample points using band-limited sinc interpolation. This alters pitch and speed in equal lockstep, producing the classic "chipmunk" speed-up effect or sluggish slowed-down bass groans.
f_target = f_base · 2^(cents / 1200) = f_base · 2^(semitones / 12 + cents_fine / 1200)
Musical Interval Semitone Shift Cents Offset Frequency Multiplier Acoustic Application
Perfect Octave Down -12 st -1200 ct 0.5000x Deep bass doubling, sub-harmonic voice
Perfect Fifth Down -7 st -700 ct 0.6674x Baritone harmony transposition
Minor Third Down -3 st -300 ct 0.8409x Key modulation for vocal ranges
Concert Pitch Unity 0 st 0 ct 1.0000x Original recorded frequency
Minor Third Up +3 st +300 ct 1.1892x Upbeat vocal pop harmony
Perfect Fifth Up +7 st +700 ct 1.4983x Trumpet and synth lead doubling
Perfect Octave Up +12 st +1200 ct 2.0000x High soprano shimmer, chipmunk effect

Why Equal Temperament Uses 1200 Cents per Octave

In acoustic physics, doubling an audio frequency (multiplying by 2.0) corresponds to an acoustic interval of one octave. The modern Western musical standard divides the octave into twelve logarithmically equidistant semitones. Alexander Ellis proposed dividing each semitone into 100 hundredths, termed cents.

Because human pitch discrimination (the "Just Noticeable Difference" or JND) is approximately 5 to 10 cents for trained vocalists and audio mastering engineers in the mid-frequency range (500 Hz to 2 kHz), fine-tuning pitch by individual cents is indispensable for pitch correction, removing subtle chorusing beats between guitars, and tuning un-pitched drums.

Common Real-World Use Cases

  • Vocal Range Adaptation for Singers: Backing tracks and karaoke songs are frequently written in keys that strain a singer's upper or lower range. Shifting the song down 2 or 3 semitones enables comfortable vocal delivery without straining or cracking.
  • Instrumental Stems Re-Tuning: Sample pack loops and acapella vocal chops frequently clash musically with an active project's key signature. Pitch shifting samples to match the root key of your project prevents harmonic dissonance.
  • Speech Pathology & Acoustic Linguistics: Forensic linguists and voice therapists alter fundamental frequencies (F0) to study pitch perception, prosody, and speech intelligibility in patients with dysphonia.
  • Sound Design & Creature Voices: Pitching everyday animal sounds down by 7 to 12 semitones adds visceral weight and acoustic mass, creating thunderous monster roars and cinematic sci-fi sound effects.

Frequently Asked Questions

How does in-browser pitch shifting work without changing tempo?

The granular pitch shift algorithm segments audio into tiny time windows (grains of 40-50 milliseconds) enveloped by a raised cosine Hanning window. Grains are overlapped and re-synthesized at modified hop intervals using the Synchronized Overlap-Add (SOLA) technique. This alters pitch fundamental frequencies while strictly preserving original track duration.

What is the difference between semitones and cents?

In Western equal-temperament tuning, an octave is divided into 12 semitones (half-steps), and each semitone is divided into 100 cents. Transposing by +1 semitone raises musical pitch by one chromatic piano key, while 10 cents provides subtle micro-tonal correction to fix out-of-tune vocal stems or acoustic instruments.

What is the difference between Granular and Resample modes?

Granular mode shifts musical pitch while maintaining identical duration and playback tempo, ideal for vocal transposition and karaoke. Resample mode mimics analog tape varispeed: shifting pitch also accelerates or decelerates playback tempo proportionately, producing classic vinyl DJ pitch-bend and cassette tape varispeed effects.

Can I use this tool to change the musical key of a song for singing?

Yes! If a backing track or instrumental is too high or low for your vocal register, you can adjust the semitone slider up or down to transpose the song into your comfortable vocal tessitura without degrading sound fidelity.

Will pitch shifting distort or artifact my audio?

Modest pitch transpositions between -4 and +4 semitones sound exceptionally clean and natural. Extreme shifts approaching an entire octave (+12 or -12 semitones) will produce distinctive formantic character, commonly used for creative vocal effects, robot voices, and sound design.

What audio formats are supported for pitch shifting?

You can upload MP3, WAV, AAC, M4A, FLAC, OGG, and WebM audio files. The shifted master is rendered in uncompressed, studio-grade 16-bit PCM WAV format compatible with all major audio editors and video software.

Are my audio recordings uploaded to any remote server?

Never. All audio decoding, granular synthesis math, and WAV serialization occur 100% locally in your web browser. Zero audio bytes ever leave your machine, ensuring complete privacy.