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

Method onOnset

src/fl/audio/audio_processor.cpp.hpp:108–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void Processor::onOnset(function<void(float)> callback) {
109 auto detector = getBeatDetector();
110 detector->onOnset.add(callback);
111}
112
113void Processor::onTempoChange(function<void(float, float)> callback) {
114 auto detector = getBeatDetector();

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected