process
Process a pitch contour with smoothing and octave correction using default settings.
Return
Processed pitch array
Parameters
pitches Hz
Input pitch array in Hz (-1 for unvoiced)
fun process(pitchesHz: FloatArray, smoothingWindowSize: Int = 7, octaveThresholdCents: Float = 500.0f, enableSmoothing: Boolean = true, enableOctaveCorrection: Boolean = true): FloatArray
Process a pitch contour with configurable smoothing and octave correction.
Return
Processed pitch array
Parameters
pitches Hz
Input pitch array in Hz (-1 for unvoiced)
smoothing Window Size
Smoothing filter window (must be odd, default 7)
octave Threshold Cents
How close to 1200 cents a jump must be to be corrected (default 500)
enable Smoothing
Enable smoothing filter (default true)
enable Octave Correction
Enable octave error correction (default true)