fix: note2oct
This commit is contained in:
parent
584d469a73
commit
f2c16a06a1
4 changed files with 5 additions and 5 deletions
|
|
@ -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 [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue