Pitch Shifter
Change an audio file's playback rate from 0.5× to 2× in the tab, shifting pitch and tempo together, and download the resampled result as WAV.
What this page makes
Resamples a decoded file by a playback rate you choose; the pitch moves and so does the tempo, and the page says so.
How to use it
Choose an audio file, set the playback rate, and press Play at this rate. The readout shows the new duration and the semitone shift. Download resampled WAV writes the resampled channels as 16-bit PCM.
Worked example: a 180.000 s file at 1.5× becomes 120.000 s, about +7.02 semitones, with both pitch and tempo changed.
Method
The file is decoded with decodeAudioData and played through an AudioBufferSourceNode whose playbackRate is the factor you set. The WAV download resamples the same channels by linear interpolation at that factor. There is no phase vocoder and no time-stretch, so a 1.5× rate is about +7.02 semitones and two thirds the duration.
What it refuses
A factor outside 0.5–2.0 is refused with the range named. A file the browser cannot decode is refused by its type instead of being decoded by a fallback codec the page does not have.
Where it runs
The file is read and resampled in this tab: it is never uploaded and no copy is stored. The browser requirement is stated on the page: Decoding needs decodeAudioData and playback needs an AudioBufferSourceNode; both are part of the Web Audio API. The WAV download uses the page's own resampling arithmetic.
The rest of the family
The other audio and recurrence pages are listed under Calculators: tone and binaural generation, the virtual piano, pitch shifting, looping and reversal, the stated noise filter chain, mid/side cancellation, microphone recording and the closed-form recurrence solver.
Resamples a decoded file by a playback rate you choose; the pitch moves and so does the tempo, and the page says so.
The file is decoded with decodeAudioData and played through an AudioBufferSourceNode whose playbackRate is the factor you set. The WAV download resamples the same channels by linear interpolation at that factor. There is no phase vocoder and no time-stretch, so a 1.5× rate is about +7.02 semitones and two thirds the duration. The file is read and resampled in this tab: it is never uploaded and no copy is stored.
Worked example: a 180.000 s file at 1.5× becomes 120.000 s, about +7.02 semitones, with both pitch and tempo changed.
The readout prints the new duration and the semitone shift, the two facts resampling changes.
How to use the pitch shifter
Choose an audio file, set the playback rate, and press Play at this rate. The readout shows the new duration and the semitone shift. Download resampled WAV writes the resampled channels as 16-bit PCM.
The file is read and resampled in this tab: it is never uploaded and no copy is stored.
- Domain: One audio file the browser can decode, factor 0.5–2.0, WAV output.
What the page proves
Resamples a decoded file by a playback rate you choose; the pitch moves and so does the tempo, and the page says so.
The file is decoded with decodeAudioData and played through an AudioBufferSourceNode whose playbackRate is the factor you set. The WAV download resamples the same channels by linear interpolation at that factor. There is no phase vocoder and no time-stretch, so a 1.5× rate is about +7.02 semitones and two thirds the duration.
- Browser requirement: Decoding needs decodeAudioData and playback needs an AudioBufferSourceNode; both are part of the Web Audio API. The WAV download uses the page's own resampling arithmetic.
- The page states its domain: One audio file the browser can decode, factor 0.5–2.0, WAV output.
What it refuses, and what it leaves out
A factor outside 0.5–2.0 is refused with the range named. A file the browser cannot decode is refused by its type instead of being decoded by a fallback codec the page does not have.
- Not the right page for: changing pitch while keeping the tempo, which needs a time-stretcher
- Not the right page for: transposing a backing track for a singer at the original tempo
- Not the right page for: restoring pitch without changing duration
- Reported as a named state: a rate outside 0.5–2.0 is refused
- Reported as a named state: an undecodable file is refused by type
- Reported as a named state: the download is WAV, because browsers expose no MP3 encoder
What to Expect
Best for
- making a quick octave-up or octave-down version
- checking a riff at half speed
- a deliberate chipmunk or slow-tape effect
Not ideal for
- changing pitch while keeping the tempo, which needs a time-stretcher
- transposing a backing track for a singer at the original tempo
- restoring pitch without changing duration
What this tool keeps
- the decoded samples exactly; only the read rate changes
What may need cleanup
- nothing: the resample is computed when you press Download
Common errors
- a rate outside 0.5–2.0 is refused
- an undecodable file is refused by type
- the download is WAV, because browsers expose no MP3 encoder
Example use cases
- hear a solo at half speed
- make an octave-up version of a sample
- measure how much shorter a 1.25× file becomes
Sample input
a 180.000 s file at 1.5×
Sample output
120.000 s, about +7.02 semitones, with both pitch and tempo changed
Who this is for
- musicians learning a part
- audio tinkerers making a quick effect
Frequently asked questions
Is my data sent anywhere?
The file is read and resampled in this tab: it is never uploaded and no copy is stored.
Which browser API does this page need?
Decoding needs decodeAudioData and playback needs an AudioBufferSourceNode; both are part of the Web Audio API. The WAV download uses the page's own resampling arithmetic.
What can I download?
Download resampled WAV writes the resampled channels as 16-bit PCM WAV.
Does the tempo stay the same?
No, and the page states that plainly. Resampling changes duration by 1/factor, so 1.5× is two thirds as long. A time-preserving shift needs a phase vocoder, which this page does not have.
How many semitones is 1.5×?
About +7.02, which is a perfect fifth plus a few cents. The page prints the exact value from 12·log2(factor).
Why is the download WAV?
Browsers expose no MP3 encoder to a page. The decoded audio is written as 16-bit PCM WAV, which every browser and player reads.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.