Pitch Contour
A sequence of PitchPoints representing a pitch contour over time.
The primary data type flowing through the tona pipeline: PitchDetection produces it, PitchProcessing cleans it, PitchAnalysis analyzes it, and downstream modules (tessera, accura, calibra) consume it.
Construct via fromArrays (from parallel time/pitch arrays), fromPoints (from a list), or fromPitchData (from parsed file data).
See also
For realtime contour accumulation
For batch extraction
For cleaning a contour
Properties
Pitches in Hz (fast path). Unvoiced frames use -1.
Pitches in MIDI for native evaluator (fast path). Unvoiced frames use -1.
Original audio sample rate (default 16kHz).
List of pitch points in chronological order.
Times array for native evaluator (fast path)
Ratio of voiced samples to total samples (0.0 - 1.0)