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

Method setThresholds

src/fl/audio/audio_reactive.cpp.hpp:899–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899void BeatDetectors::setThresholds(float bassThresh, float midThresh, float trebleThresh) {
900#if SKETCH_HAS_LARGE_MEMORY
901 bass.setThreshold(bassThresh);
902 mid.setThreshold(midThresh);
903 treble.setThreshold(trebleThresh);
904#else
905 combined.setThreshold((bassThresh + midThresh + trebleThresh) / 3.0f);
906#endif
907}
908
909// PerceptualWeighting implementation
910PerceptualWeighting::PerceptualWeighting()

Callers

nothing calls this directly

Calls 1

setThresholdMethod · 0.45

Tested by

no test coverage detected