fromPoints

fun fromPoints(points: List<PitchPoint>, sampleRate: Int = 16000, hopSize: Int = 0): PitchContour

Create a PitchContour from a list of PitchPoints.

Parameters

points

List of pitch points in chronological order

sampleRate

Audio sample rate (default 16kHz)

hopSize

Hop size in samples between frames (0 = unknown)