sample rate pitch shift calculator
Sample Rate Pitch Shift Calculator guide
Use the rate ratio when diagnosing a mislabeled WAV or predicting a varispeed change that keeps the sequence of stored samples intact.
Play the instrument ↑- Worked example
- A 440 Hz tone stored at 48 kHz plays at 404.25 Hz when the same frames are clocked at 44.1 kHz.
Formula and units
Divide playback sample rate by original sample rate. Multiply the source frequency by that ratio, divide the original duration by it, and convert the ratio to cents with 1,200 times its base-two logarithm.
Worked examples
A 440 Hz tone stored at 48 kHz plays at 404.25 Hz when the same frames are clocked at 44.1 kHz. Its pitch falls by about 146.7 cents, and playback takes about 108.84 percent of the original duration.
If a 44.1 kHz file is instead clocked at 48 kHz without conversion, the ratio is reversed. Pitch rises, the duration shortens, and the cents offset changes sign. The frequency of a steady tone increases in proportion to the changed clock speed.
Distinguish playing the same frames from resampling
A correct sample-rate conversion calculates a new set of samples so the nominal pitch and playback duration remain the same. Reinterpreting a header or clock is different. The stored samples are used at a faster or slower rate, which alters both duration and pitch together.
If an export sounds sharp and finishes early, compare the documented source rate with the container declaration and playback setup. A header flag alone does not demonstrate which sampling clock captured the original. Check against a known pitch, elapsed time or trusted project recording before adjusting data.
Use the cents result when comparing pitch controls
Some samplers present pitch offset in semitones, often with a separate fine tuning control. Divide cents by one hundred for equal-tempered semitones. The displayed target frequency gives a second independent comparison with a spectrum or tuner when the source note is known.
If you apply independent pitch correction after the clock mismatch, pitch can return to the intended value while the time error remains. Conversely, stretching the audio to match duration can leave the pitch unchanged, depending on the processing mode. Verify both if reconstructing the original playback.
Use a known tone and duration to test a suspected mismatch
Start with a ten-second 48 kHz file holding a known 440 Hz tone. At 44.1 kHz playback without conversion, the resulting duration is about 10.884 seconds. Both the duration and tone shift should agree with the same ratio. If the duration stays near ten seconds while the tone shifts, consider a processing mode with independent pitch adjustment.
For a controlled comparison, export a correctly resampled copy at the desired rate and a separate copy using a trusted tool that only reinterprets the rate. Expected pitch and time differ only in the second case. Listen to both with the same playback settings and compare the header declarations and frame counts. The metadata alone cannot describe which process occurred.
If the intended sound is one octave higher through varispeed, a twofold clock ratio is the expected value. Use the reverse ratio as a check that one octave down takes twice as long. For musical material, compare against a trusted reference rather than assuming the nearest pitch name from the recording was the original. The reported cents offset describes the model's frequency relation and can reveal why apparent tuning is consistently sharp or flat across the clip.
Inputs and assumptions
The tool calculates from the values in the form. Keep the reference and units visible when copying the result to session notes. The displayed precision describes the arithmetic and may exceed what your meter, source file or score can support.
Audio Resampling Calculator → · GestureSynth music theory tools → · W3C Web Audio playback rate specification →
Answers before you play
Common questions
What if both rates match?
The ratio is one. The source frequency stays the same, the duration is 100 percent, and the pitch offset is zero cents.
Can the calculator identify a missing original sample rate?
It predicts a change from rates you enter. To infer an unknown rate, compare possible source rates against a trusted clock, pitch, project setting or original documentation.
Does it require a file?
No. Enter rates in hertz and a known or representative tone in hertz. The results describe the relationship for any number of stored frames.
Will an audio player's standard resampling change pitch?
A normal correctly configured resampler aims to preserve time and pitch. The linked resampling tool estimates the changed frame count. This page models what happens when the original frame count stays the same while its playback rate changes.