fromArrays

fun fromArrays(times: FloatArray, pitches: FloatArray, sampleRate: Int = 16000): PitchContour

Create a PitchContour from parallel arrays (for migration from old API).

Parameters

times

Timestamps in seconds

pitches

Pitch values in Hz (-1 for unvoiced)

sampleRate

Audio sample rate