smoothGaussian

fun smoothGaussian(pitchesHz: FloatArray, sigma: Float = 3.0f): FloatArray

Apply Gaussian smoothing with NaN-aware gap interpolation.

Ported from tona/pitch/corrections.py:smooth_pitch_gaussian().

Return

Smoothed pitch values in Hz

Parameters

pitchesHz

Pitch values in Hz (-1 for unvoiced)

sigma

Gaussian kernel sigma