openmixer — generated API reference
    Preparing search index...

    Class PersistenceTracker

    Interframe persistence + growth tracker (IPMP + the #91 growth gate + the #116 sub-harmonic rejector). A single loud frame is a transient, not feedback; a bin must stay a candidate for persistFrames in a row (persistence), show a sustained RISING level over the same window (isGrowing), AND be sub-harmonic-clean across that window (pshr ≥ PSHR_MIN_DB — a strong line near f/2 or f/3 marks a musical overtone) before it is confirmed — a persistent but flat/decaying tone (a held musical note, quiet/broadband program) never confirms, however long it rings, and neither does a swelling note's upper partial. Feed it one magnitude spectrum per hop; push returns candidates that just crossed ALL bars on this frame, and activeBins lists bins currently ringing (candidate right now, confirmed or not — for the RTA overlay).

    Index
    • Bins currently ringing (streak > 0 — candidate this frame, confirmed or not), for the RTA overlay / analyzer panel.

      Returns number[]

    • A LIVE reading for every bin CONFIRMED and still ringing this frame — unlike push (which only reports a bin the moment it first crosses both bars), this reads fresh levelDb/depthDb off spectrum every call, so a trace log fed one snapshot per frame sees the peak level climb while the tone keeps ringing. spectrum should be the SAME frame just handed to push.

      Parameters

      Returns NotchCandidate[]