normalize

fun normalize(level: AudioLevel, elapsed: Duration): Float(source)

Return

0..1

Parameters

elapsed

audio the level covers, normally AudioChunk.duration or CaptureConfig.chunkDuration. Keeps the response independent of chunk size.