getCumulativeVoicedTime

Get cumulative voiced time from pitch contour.

Calculates the total amount of time where pitch was detected (i.e., the singer was producing voiced sound).

Return

Total voiced time in seconds

Parameters

times

Array of timestamps in seconds

pitchesHz

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