FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getf()

float fl::WaveSimulation1D::getf ( size_t x) const

Definition at line 249 of file wave_simulation.cpp.

249 {
250 if (!has(x))
251 return 0.0f;
252 float sum = 0.0f;
253 for (uint32_t i = 0; i < mMultiplier; ++i) {
254 sum += mSim->getf(x * mMultiplier + i);
255 }
256 return sum / static_cast<float>(mMultiplier);
257}
int x
Definition Audio.ino:71
fl::scoped_ptr< WaveSimulation1D_Real > mSim
bool has(size_t x) const

References has(), mMultiplier, mSim, and x.

+ Here is the call graph for this function: