The semitone-to-playback-rate formula is playback rate = 2^(n/12), where n is the signed number of semitones.

Positive n produces a rate above 1, raising the pitch while making the audio faster and shorter. Negative n produces a rate below 1, lowering the pitch while making the audio slower and longer. The Audio Pitch Changer applies this relationship through playback-rate resampling, so the selected semitone value determines both the pitch shift and the duration change.

what formula converts semitones to playback rate when i use audio pitch changer
Semitones to Playback Rate for Audio Pitch Changer

How the semitone ratio becomes a playback rate

The formula comes from twelve-tone equal temperament. McGill University’s MIDI/Frequency Conversion material describes an octave as twelve equal semitones, with a frequency ratio of 2^(1/12) for each semitone. Repeating that ratio across twelve semitones produces the familiar 2× octave relationship.

The MDN AudioBufferSourceNode playbackRate reference explains the operating distinction: a rate below one slows the audio, a rate above one speeds it up, and a non-unit rate causes resampling. Because resampling changes how quickly source samples are consumed, the pitch and timeline move together in this workflow.

For one worked calculation, a three-semitone increase gives playback rate = 2^(3/12) = 2^0.25, which is approximately 1.1892. The source is therefore rendered at about 1.1892 times its original playback rate, producing a higher pitch and a shorter result.

Semitone shift Playback rate Effect in Audio Pitch Changer
+12 semitones 2× One octave higher, faster, and roughly half the original duration.
0 semitones 1× Original pitch and duration.
-12 semitones 0.5× One octave lower, slower, and roughly twice the original duration.

Think of the playback rate as a speed multiplier and the output duration as its inverse. When the rate is higher, the rendered result has fewer output frames. When the rate is lower, it has more output frames, so the output takes longer. This inverse relationship is why a downward shift can create a much larger file even when the source itself is within the input limits.

The general formula can express fractional semitone ratios, but Audio Pitch Changer accepts only whole-number settings from -12 through +12. Its purpose is therefore a direct pitch shift with an unavoidable tempo and duration change, not an independent pitch-versus-speed control.

Use the formula in Audio Pitch Changer

You enter the desired pitch interval in semitones rather than entering the playback rate yourself. The tool calculates the equal-tempered rate from 2^(n/12), sets the source playback rate accordingly, and renders the complete result locally.

  1. Choose one source file. Select a browser-decodable audio file no larger than 50 MiB. Common supported inputs include MP3, WAV, M4A, AAC, Ogg, WebM, and FLAC, although actual decoding still depends on the current browser. A recognized extension does not guarantee that every unusual codec profile will work.
  2. Set the pitch shift. Enter a whole number from -12 through +12 semitones. Use a positive value to raise the pitch and a negative value to lower it. A value of 0 keeps the original pitch, while the interface reminds you that the duration changes with the selected shift.
  3. Create the complete local render. Start the render after confirming the source and semitone value. The browser sets the source playback rate to the calculated ratio and renders at the decoded sample rate. The tool checks the required output size before allocating the complete render.
  4. Review the duration and download the WAV. Check the stated duration change before downloading the finished PCM16 WAV. The page does not provide a blob-backed audio preview, so play the downloaded file in a trusted local audio player.

File reading, decoding, offline resampling, and WAV encoding all happen in the current browser tab. The source and rendered audio are not uploaded to Lizely. Changing either the input file or semitone value invalidates the previous result, so create a new render whenever either setting changes.

Checks that determine whether the render completes

Input validation

  • The encoded input file may be no larger than 50 MiB.
  • Decoded audio may be no longer than five minutes.
  • Decoded audio may contain at most eight channels.
  • The decoded sample rate must fall from 8,000 through 192,000 Hz.
  • Input decoding is limited to 30 million channel samples.
  • Empty files, unsupported types, invalid decoded dimensions, and failed decodes are rejected.

The five-minute limit applies to the decoded input. It is not a separate promise that a downward pitch shift will produce an output of no more than five minutes, because slowing the source requires more output frames.

Output completion and budget checks

The shifted output has its own 30-million-channel-sample budget. Lowering the pitch increases the required number of output frames, so a source can pass the input checks and still exceed the output budget after a large downward shift. In that case, Audio Pitch Changer reports that the requested shift is over budget and states that nothing was truncated.

The required output frame count is calculated before allocation as the ceiling of the input frame count divided by the playback rate. A render is accepted only when the browser returns the expected channel count, sample rate, and complete frame count. There is no silent tail cut, hidden duration cap, or fallback that substitutes an incomplete file. If the full output exceeds the budget or the browser cannot allocate it, the tool reports an error and creates no download.

What the final WAV contains

Audio Pitch Changer creates a newly encoded, uncompressed PCM16 RIFF/WAVE file. Samples are interleaved and stored as little-endian 16-bit PCM. This gives you a broadly playable result, but it is not a bit-for-bit preservation of the source file.

  • The export does not preserve the original codec, compression quality, bitrate, tags, artwork, chapters, cue points, loop metadata, or other container metadata.
  • Floating-point samples are clipped to the legal -1 through +1 range before conversion to PCM16.
  • PCM16 quantization can differ from the decoded floating-point source.
  • Browser resampling quality is implementation-defined. Strong upward shifts can also expose aliasing or codec artifacts that were less noticeable in the original.

These characteristics make the tool appropriate for quick creative experiments, practice tracks, sound effects, and rough editing. It is not intended to act as a transparent mastering process.

When playback-rate shifting fits the job

Choose Audio Pitch Changer when the priority is a predictable pitch shift and a faster or slower result is acceptable. The semitone value gives direct control over the direction and size of the pitch change, while the playback-rate formula keeps that choice mathematically consistent.

The tool does not preserve tempo, speech cadence, beat positions, or the exact original duration. If a production requires the pitch to change while the duration stays fixed, use a dedicated phase-vocoder or another time-stretching workflow instead. That distinction should be decided before rendering because a playback-rate pitch changer cannot separate the two properties.

For a quick check, confirm the sign of the shift, the expected speed and duration direction, and whether a downward shift could push the output over its sample budget. Once those conditions fit the task, enter the semitone value, let the complete local render finish, and download the PCM16 WAV.

If you're weighing options, How Do I Troubleshoot a Problem When I Use Volume Changer covers this in detail.

If you're weighing options, Best Way to Use an Audio Pitch Changer covers this in detail.