Candidate pitch class in [0, 11], or -Infinity when no candidate is tracked.
How long the current candidate has been stable, in milliseconds.
Committed pitch class in [0, 11], or -Infinity before the first commit.
Clamp range for returned fractionalDistance, in semitones.
Returns true when silence has lasted at least holdAfterSilenceMs.
Resets all internal state, including silence/commit timers.
Updates the tracker for one frame.
Call frequency: typically once per render/audio frame.
Pitch confidence in $[0, 1]$.
Elapsed time since the previous update, in milliseconds.
Absolute time, in milliseconds (monotonic clock).
Raw detected pitch in Hz.
StatichzConverts frequency in Hz to a continuous MIDI note number.
Stabilizes pitch changes and emits committed pitch-class updates.
“Commit” in this project means: the pitch class is considered stable enough to drive downstream decisions (e.g. pitch→color mapping) without rapid back-and-forth flicker.