GestureSynth.me

Music calculator

Audio Resampling Calculator

Estimate output frame count and the reduced conversion ratio from an input frame count and the original and target audio sample rates.

sample rate converter calculator

Audio Resampling Calculator guide

When preparing a session or building a resampler, forecast how many frames a rate conversion will produce while preserving the nominal source duration.

Play the instrument ↑
Default calculation
One second at 44.1 kHz contains 44,100 frames.

Formula and units

Multiply the source frames by the target rate and divide by the source rate. The tool shows the exact quotient to display precision, rounds to the nearest frame, and reduces the target-to-source rate ratio.

Worked example

One second at 44.1 kHz contains 44,100 frames. Converted to 48 kHz, it has 48,000 frames. The reduced ratio is 160:147.

A real converter may trim filter delay, pad its output, or use a different end-of-stream rounding convention. For a deliverable with an exact sample count, compare against the exported file.

Choose the right frame count

Suppose an editor shows a 44.1 kHz stereo selection with 4,410 frames. Each frame points to two simultaneous channel samples, one left and one right. The selection lasts one tenth of a second. Enter 4,410 frames to predict 4,800 frames at 48 kHz. If you enter 8,820 interleaved values instead, the result would describe twice the intended duration. Some editing applications label time positions as samples even when they mean frames, so compare the count against the length in seconds.

For a short non-integer case, 1,001 frames at 48 kHz convert to 919.66875 frames at 44.1 kHz. Rounding once for that entire clip yields 920 output frames. If you repeat the operation on every edit fragment and then concatenate them, per-fragment rounding can accumulate. For preparing a library that must align to exact timeline boundaries, map cumulative frame positions or convert a complete continuous region before cutting it into files in the destination format.

The reduced target-to-source rate ratio helps when comparing converters that describe a rational resampler. Converting between 48 kHz and 96 kHz gives 2:1 in the upsampling direction and 1:2 in the downsampling direction. A non-integer ratio such as 160:147 can be represented with rational factors. The ratio summarizes the conversion and does not tell you the quality or length of the filter. Use a converter whose requirements fit the available processing and the audible result.

Track rate and frame offsets after conversion

If a click occurs halfway through the source at frame 22,050 in a 44.1 kHz file, it lies about half a second from the start. At 48 kHz it belongs near frame 24,000. This is the same rate ratio applied to the event position. Convert every marker from its original cumulative offset so independent rounding of gaps does not introduce timing drift through the file.

A fixed hardware session may reject an otherwise valid rate or convert it automatically. Check the accepted rate of the destination and whether it is doing its own conversion. If you have a 96 kHz master and need to deliver 48 kHz audio, doing one intentional conversion gives a reproducible render. Keep the original project to avoid repeatedly filtering or rounding the same material.

An unchanged source and target rate give a 1:1 ratio and identical estimated frame count. Zero input frames give an empty payload even when the selected rates produce a nontrivial ratio. Try both to check that you have distinguished the size of your input from the conversion relationship itself.

Assumptions and limits

A frame contains one sample per channel at a time position. Enter frames, so a stereo file with 88,200 interleaved samples supplies 44,100 frames.

Answers before you play

Common questions

Will changing the sample-rate tag preserve speed and pitch?

Only resampling also changes the stored sequence. Changing the header alone tells a player to read the old sequence at a different rate, changing speed and pitch.

Does downsampling only discard frames?

Many useful conversions first apply an anti-alias filter so that frequencies above the destination Nyquist region do not fold into lower bands. The frame count calculation describes the approximate output length, independent of the algorithm used to decide the new values. A frame count match does not guarantee that the output sounds identical.

What should I enter for a mono file?

Enter the count of time positions in the source. With one channel the frame count is also the number of sample values. If a stereo file and a mono file use the same sample rate and duration, their frame counts match even though their channel data sizes differ.

Why is an actual output one frame different?

Resamplers can round down, round up, choose nearest, or include filter padding. The tool chooses nearest and displays the unrounded value so you can see where another convention would land. Confirm a required export length using the actual converter, especially for very short clips or seamless loop boundaries.