Audio duration & size
Audio sample length and PCM size calculator
Calculate an audio loop's duration, sample frames and packed PCM payload from bars, BPM, meter, sample rate, bit depth and channels.
Sample length: settings and guide
Worked example
Example: a four-bar 48 kHz stereo loop
Four bars of 4/4 at 120 quarter-note BPM last 8 seconds. At 48 kHz that is 384,000 sample frames. At packed 24-bit stereo, the audio payload is 2,304,000 bytes, or about 2.20 MiB, before headers or metadata.
Good to know
Assumptions and limits
- Tempo is constant and entered as quarter-note BPM; the complete time signature determines the bar length.
- Sample frames are rounded exactly to the nearest whole frame, with half-frame ties rounded upward.
- File size describes packed PCM audio payload using the stored bit depth and excludes headers, metadata, container padding and compression.
Review BeatTiming's calculation accuracy, precision and release-testing methodology.
Loop frame reference
Common loop lengths in sample frames
Sample-frame count depends on musical duration and sample rate, not channel count. The reference below uses 4/4 at 120 BPM; stereo changes the number of stored sample values and bytes, but not the frame count or duration.
4/4 loops at 120 BPM
Duration and sample frames for common loop lengths at 120 BPM and 44.1 or 48 kHz| Length | Duration | 44.1 kHz frames | 48 kHz frames |
|---|
| 1 bar | 0:02.000 | 88,200 | 96,000 |
|---|
| 4 bars | 0:08.000 | 352,800 | 384,000 |
|---|
| 8 bars | 0:16.000 | 705,600 | 768,000 |
|---|
| 16 bars | 0:32.000 | 1,411,200 | 1,536,000 |
|---|
- Find a loop's BPM Work backward from a trimmed loop's measured seconds, bar count and time signature.
- Samples and milliseconds Convert an arbitrary frame count or timing offset at the exact session sample rate.
Quick answers
How many sample frames are in one second?
At 44.1 kHz there are 44,100 sample frames per second; at 48 kHz there are 48,000. Each frame contains one value per channel.
Why is a stereo file twice as large?
Stereo stores two sample values in every frame—one for the left channel and one for the right.
Does bit depth change duration?
No. Bit depth changes the data stored for each sample and therefore file size, not playback duration.