quantize
fun quantize(contour: PitchContour, tonicHz: Float, targetIntervalsCents: FloatArray, config: QuantizationConfig = QuantizationConfig.DEFAULT): PitchContour
Quantize a pitch contour to the nearest target intervals where the pitch is stable.
Return
New PitchContour with quantized pitch values (unvoiced where unstable)
Parameters
contour
Input pitch contour
tonic Hz
Tonic frequency in Hz
target Intervals Cents
Target interval values in cents
config
Quantization configuration