duplicate

abstract fun duplicate(): PitchDetector

Create a duplicate detector with the same configuration.

Useful for parallel feature extraction (e.g., extracting pitch from reference audio while the primary detector handles student audio).

The duplicate is independent - it has its own internal state and pitchContour. Closing one does not affect the other.

Return

A new PitchDetector instance with identical configuration