| 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 |
nothing calls this directly
no test coverage detected