WaveformEnvelope

Reduces audio samples to normalized display amplitudes.

Functions

Link copied to clipboard
fun make(from: FloatArray): List<Double>

Builds an envelope using the library's default number of bars.

fun make(from: FloatArray, bars: Int): List<Double>

Builds at most bars normalized amplitudes in the range zero through one.