computeCapacity

fun computeCapacity(times: FloatArray, pitchesHz: FloatArray): Float

Compute breath capacity from pitch contour.

Measures the maximum duration of sustained voiced segments, indicating how long the singer can hold notes without breathing.

Return

Breath capacity in seconds (longest sustained phrase)

Parameters

times

Array of timestamps in seconds

pitchesHz

Array of pitch values in Hz (-1 for unvoiced frames)