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

◆ periodToFrequency() [2/2]

float fl::audio::detector::Pitch::periodToFrequency ( int period) const
private

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

216 {
217 if (period <= 0) {
218 return 0.0f;
219 }
220 return mSampleRate / static_cast<float>(period);
221}

References fl::FL_NO_EXCEPT, and mSampleRate.

Referenced by calculateAutocorrelation().

+ Here is the caller graph for this function: