MCPcopy Create free account
hub / github.com/FastLED/FastLED / getBinFrequencyRange

Method getBinFrequencyRange

src/fl/audio/frequency_bin_mapper.cpp.hpp:206–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206FrequencyBinMapper::FrequencyRange FrequencyBinMapper::getBinFrequencyRange(size binIndex) const {
207 FrequencyRange range = {0.0f, 0.0f};
208
209 if (binIndex >= mBinFrequencies.size() - 1) {
210 return range;
211 }
212
213 range.minFreq = mBinFrequencies[binIndex];
214 range.maxFreq = mBinFrequencies[binIndex + 1];
215 return range;
216}
217
218} // namespace audio
219} // namespace fl

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected