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

Method fft

src/fl/audio/audio.cpp.hpp:178–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void Sample::fft(fft::Bins *out) const {
179 fl::span<const fl::i16> sample = pcm();
180 fft::Args args;
181 args.samples = sample.size();
182 args.bands = out->bands();
183 args.fmin = fft::Args::DefaultMinFrequency();
184 args.fmax = fft::Args::DefaultMaxFrequency();
185 args.sample_rate =
186 fft::Args::DefaultSampleRate(); // TODO: get sample rate from Sample
187 fl::Singleton<GuardedFFT>::instance().run(sample, out, args);
188}
189
190
191void Sample::applyGain(float gain) {

Callers 3

FL_TEST_FILEFunction · 0.80
loopFunction · 0.80
loopFunction · 0.80

Calls 3

bandsMethod · 0.80
sizeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected