from Arrays
fun fromArrays(times: FloatArray, pitches: FloatArray, sampleRate: Int = 16000, hopSize: Int = 0): 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)
sample Rate
Audio sample rate
hop Size
Hop size in samples between frames (0 = unknown)