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

◆ shouldTriggerNoteOn() [2/2]

bool fl::audio::detector::Note::shouldTriggerNoteOn ( float confidence,
float pitch ) const
private

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

223 {
224 // Trigger note-on when:
225 // 1. Confidence exceeds threshold
226 // 2. Pitch is valid (non-zero)
227 return (confidence >= mNoteOnThreshold) && (pitch > 0.0f);
228}

References fl::FL_NO_EXCEPT, and mNoteOnThreshold.

Referenced by update().

+ Here is the caller graph for this function: