interpolate Silence
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
pitches Hz
Pitch values in Hz (-1 for unvoiced)
hop Ms
Hop size in milliseconds between frames
method
Interpolation method
max Gap Ms
Maximum gap duration to interpolate