| 897 | } |
| 898 | |
| 899 | void 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 |
| 910 | PerceptualWeighting::PerceptualWeighting() |
nothing calls this directly
no test coverage detected