getStableSlopeMask

fun getStableSlopeMask(pitchesHz: FloatArray, hopMs: Int = 10, maxSlopeCentsPerSec: Float = 500.0f): BooleanArray

Get mask of frames with stable pitch slope.

Return

Boolean array where true = stable slope

Parameters

pitchesHz

Pitch values in Hz (-1 for unvoiced)

hopMs

Hop size between frames in milliseconds

maxSlopeCentsPerSec

Maximum allowed slope in cents/second