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

◆ frequencyToPeriod() [2/2]

int fl::audio::detector::Pitch::frequencyToPeriod ( float frequency) const
private

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

223 {
224 if (frequency <= 0.0f) {
225 return 0;
226 }
227 return static_cast<int>(mSampleRate / frequency);
228}

References fl::FL_NO_EXCEPT, and mSampleRate.

Referenced by updatePeriodRange().

+ Here is the caller graph for this function: