Removing Extraneous Notes
If a chord has notes that are outside of the chord, those notes will be disregarded and the chord will still be recognized!
For example, since the A1
is far enough from the rest of the chord, it will be ignored.
Before:
Chord.for("A1 C E G").getName(); // undefined
After:
Chord.for("A1 C E G").getName(); // C
Recognizing Multiple Chords
If multiple chords are given, then only the first one will be recognized
Before:
Chord.for("D2 F#2 A2 C E G").getName(); // undefined
After:
Chord.for("D2 F#2 A2 C E G").getName(); // D