FIXES: note2pc TODOs
This commit is contained in:
parent
a3fdfbbc16
commit
4298e582fb
2 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ export function tokenizeChord(chord) {
|
|||
}
|
||||
return match.slice(1);
|
||||
}
|
||||
export const note2pc = (note) => note.slice(0, -1);
|
||||
export const note2pc = (note) => note.match(/^[A-G][#b]?/i)[0];
|
||||
export const note2oct = (note) => Number(note.slice(-1));
|
||||
|
||||
export const note2chroma = (note) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue