Allow negatives and multi-accidentals

This commit is contained in:
Aria 2025-08-22 13:17:13 -05:00
parent b08890bd9e
commit 79453ac2c3
4 changed files with 9 additions and 23 deletions

View file

@ -80,7 +80,7 @@ describe('tonal', () => {
});
it('snaps notes to the correct octave', () => {
const inputNotes = ['Cb0', 'Eb4', 'G1', 'A#19', 'Bb8'];
const expectedNotes = ['B#0', 'D#4', 'G#1', 'A#19', 'A#8'];
const expectedNotes = ['B#-1', 'D#4', 'G#1', 'A#19', 'A#8'];
expect(
note(seq(inputNotes))