correctOctaveErrors

fun correctOctaveErrors(pitchesHz: FloatArray, thresholdCents: Float = 500.0f, referencePitchHz: Float = 0.0f): FloatArray

Apply octave error correction only.

Return

Corrected pitch array

Parameters

pitchesHz

Input pitch array in Hz

thresholdCents

Jump threshold in cents (default 500)

referencePitchHz

Reference pitch (0 = auto-detect)