pitchAt

abstract fun pitchAt(timeSeconds: Float): PitchPoint?

Look up the contour point closest to timeSeconds.

Used by scoring (or any caller) that needs the smoothed pitch at a specific time without re-running pitch detection. The contour is monotonic by time; this is implemented as a binary search returning whichever neighbour is closer.

Returns null if the contour is empty. If timeSeconds is before the first or after the last point, returns that boundary point — callers can detect "out of range" by checking the time delta themselves if they care.

Return

The closest PitchPoint in the contour, or null if the contour has no points.

Parameters

timeSeconds

Time in the contour's domain (same as the anchorTime passed to feedContour).