process

fun process(pitchesHz: FloatArray): FloatArray

Process a pitch contour with smoothing and octave correction using default settings.

Return

Processed pitch array

Parameters

pitchesHz

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

pitchesHz

Input pitch array in Hz (-1 for unvoiced)

smoothingWindowSize

Smoothing filter window (must be odd, default 7)

octaveThresholdCents

How close to 1200 cents a jump must be to be corrected (default 500)

enableSmoothing

Enable smoothing filter (default true)

enableOctaveCorrection

Enable octave error correction (default true)