fromPoints

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

Create a PitchContour from a list of PitchPoints.

Factory method for building contours from accumulated samples.

Return

PitchContour containing the points

Parameters

points

List of pitch points in chronological order

sampleRate

Audio sample rate (default 16kHz)