smooth

fun smooth(pitchesHz: FloatArray, windowSize: Int = 7): FloatArray

Apply weighted average smoothing in cents space.

Return

Smoothed pitch values in Hz

Parameters

pitchesHz

Pitch values in Hz (-1 for unvoiced)

windowSize

Smoothing window size. Must be odd and >= 1 (ADR-022).

Throws

if windowSize is even or < 1