slice

fun slice(startTime: Float, endTime: Float, relativeTimes: Boolean = true): PitchContour

Extract a slice of the contour within a time range.

Return

New PitchContour containing only samples within the time range

Parameters

startTime

Start time in seconds (inclusive)

endTime

End time in seconds (inclusive)

relativeTimes

If true, adjust times to be relative to startTime (0-based)