Audio Session ToolkitIndependent tools · Venture Channel Studio

Audio editing

How Audio Loop Sample Length works

Estimate loop duration and nearest whole-sample length for a fixed tempo, beats per bar and sample rate.

Count quarter-note beats

Multiply bars by quarter-note beats per bar. For other meters, express the equivalent quarter-note beat count where this model applies.

Convert beats to samples

Duration equals beat count × 60 ÷ BPM. Multiply by sample rate and round to the nearest whole sample frame; all channels share the same frame count.

Check loop points in the editor

A fractional sample count must be rounded. The displayed timing error is for this simple rounding only; tempo maps, swing, fades, resampling and encoder delays are not modeled.

Worked example

Four bars of four quarter-note beats at 120 BPM take eight seconds. At 48,000 Hz, that is 384,000 sample frames.

Try the calculator

About the method

This tool uses the stated arithmetic and assumptions. Test the worked example and confirm the inputs before using the result.

Return to Loop sample length · Explore all Audio Session Toolkit tools.