livePitchContour

abstract val livePitchContour: StateFlow<PitchContour>

Live pitch contour accumulated during recording.

This is the single source of truth for real-time pitch visualization. Updates every time detect is called with a valid frame.

Use setContourMaxDuration to set the window size (typically segment duration). Use clearPitchContour when starting a new recording segment.

Example Swift usage:

detector.observeLivePitchContour { contour in
// Update scrolling pitch display
self.pitchContour = contour
}