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

Method reset

src/fl/audio/detector/chord.cpp.hpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void ChordDetector::reset() {
131 mCurrentChord = Chord();
132 mPreviousChord = Chord();
133 mChordStartTime = 0;
134 mChordEndTime = 0;
135 for (int i = 0; i < 12; i++) {
136 mChroma[i] = 0.0f;
137 mPrevChroma[i] = 0.0f;
138 }
139}
140
141void ChordDetector::calculateChroma(const fft::Bins& fft) {
142 // Clear chroma

Callers

nothing calls this directly

Calls 1

ChordClass · 0.70

Tested by

no test coverage detected