interpolateSilence

fun interpolateSilence(pitchesHz: FloatArray, hopMs: Int = 10, method: InterpolationMethod = InterpolationMethod.LINEAR, maxGapMs: Float = 250.0f, forceRemaining: Boolean = false): FloatArray

Interpolate over silence gaps in a pitch contour.

Return

Interpolated pitch values in Hz

Parameters

pitchesHz

Pitch values in Hz (-1 for unvoiced)

hopMs

Hop size in milliseconds between frames

method

Interpolation method

maxGapMs

Maximum gap duration to interpolate