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

Method info

src/fl/audio/fft/fft_impl.cpp.hpp:137–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 fl::string info() const {
138 Bins tmp(mTotalBands);
139 tmp.setParams(mFmin, mFmax, mSampleRate);
140 for (int i = 0; i < mTotalBands; ++i) {
141 tmp.raw_mut().push_back(0.0f);
142 }
143
144 fl::sstream ss;
145 ss << "Impl Frequency Bands (CQ log-spaced): ";
146 for (int i = 0; i < mTotalBands; ++i) {
147 float f_low = (i == 0) ? mFmin : tmp.binBoundary(i - 1);
148 float f_high =
149 (i == mTotalBands - 1) ? mFmax : tmp.binBoundary(i);
150 ss << f_low << "Hz-" << f_high << "Hz, ";
151 }
152 return ss.str();
153 }
154
155 private:
156 // Thread-local scratch buffers to avoid stack overflow on ESP32 tasks

Callers

nothing calls this directly

Calls 4

binBoundaryMethod · 0.80
setParamsMethod · 0.45
push_backMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected