FastLED 3.10.8
Loading...
Searching...
No Matches

◆ shouldTriggerNoteOff() [2/2]

bool fl::audio::detector::Note::shouldTriggerNoteOff ( float confidence,
bool voiced ) const
private

Definition at line 230 of file note.cpp.hpp.

230 {
231 // Trigger note-off when:
232 // 1. Confidence drops below off threshold (hysteresis)
233 // 2. OR voice becomes unvoiced (silence or percussion)
234 return (confidence < mNoteOffThreshold) || !voiced;
235}

References fl::FL_NO_EXCEPT, and mNoteOffThreshold.

Referenced by update().

+ Here is the caller graph for this function: