amplitudeOver

fun amplitudeOver(samples: FloatArray, from: Int, length: Int, frequencyHz: Int, sampleRate: Int): Float(source)

The amplitude of frequencyHz over the length samples starting at from.

This is how a test reads the middle of a fade rather than its ends, which is the only place a ramp that is the wrong length or the wrong way round shows up.