waveformPeaks

fun AudioRecording.waveformPeaks(barCount: Int = 96): List<Float>

Builds a static peak waveform for this recording.

Peak extraction is encoding-aware (PCM int 8/16/24/32 with endianness, and float32/64), so lossless / high bit-depth clips render correctly.

Return

Amplitudes in 0f..1f, normalized to the track peak.

Parameters

barCount

Number of amplitude bars to produce.