fix: note2oct

This commit is contained in:
Felix Roos 2023-07-17 23:10:13 +02:00
parent 584d469a73
commit f2c16a06a1
4 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ export const tokenizeNote = (note) => {
if (typeof note !== 'string') {
return [];
}
const [pc, acc = '', oct] = note.match(/^([a-gA-G])([#bsf]*)([0-9])?$/)?.slice(1) || [];
const [pc, acc = '', oct] = note.match(/^([a-gA-G])([#bsf]*)([0-9]*)$/)?.slice(1) || [];
if (!pc) {
return [];
}