Correctly handle silences for non-notes

This commit is contained in:
Aria 2025-09-14 17:04:39 -05:00
parent b8c46d6b26
commit 92b2013cf6
2 changed files with 4 additions and 5 deletions

View file

@ -66,7 +66,7 @@ describe('tonal', () => {
n(seq('0b#', '1#b', '2#b#'))
.scale('C major')
.firstCycleValues.map((h) => h.note),
).toEqual(['', '', '']);
).toEqual([]);
});
it('snaps notes (upwards) to scale', () => {
const inputNotes = ['Cb', 'Eb', 'G', 'A#', 'Bb'];