fromPitchData

fun fromPitchData(data: PitchData, sampleRate: Int = 16000, hopSize: Int = 0): PitchContour

Create a PitchContour from parsed PitchData.

Parameters

data

Parsed pitch data containing times and pitches

sampleRate

Audio sample rate (default 16kHz)

hopSize

Hop size in samples between frames (0 = unknown)