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

Method isSimilarChord

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

Source from the content-addressed store, hash-verified

243}
244
245bool ChordDetector::isSimilarChord(const Chord& a, const Chord& b) {
246 if (!a.isValid() || !b.isValid()) return false;
247
248 // Same root and type = similar
249 if (a.rootNote == b.rootNote && a.type == b.type) {
250 return true;
251 }
252
253 // Check for enharmonic equivalents or closely related chords
254 // For now, just exact match
255 return false;
256}
257
258void ChordDetector::normalizeChroma(float* chroma) {
259 // Find max value

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected