This commit is contained in:
Felix Roos 2022-03-17 15:05:01 +01:00
parent 91c0a46ba9
commit 15e49952f9
12 changed files with 253 additions and 44 deletions

View file

@ -26,7 +26,7 @@ Pattern.prototype.voicings = function(range) {
};
Pattern.prototype.rootNotes = function(octave = 2) {
return this.fmap((value) => {
const [_, root] = value.match(/^([a-gA-G])[b#]?.*$/);
const [_, root] = value.match(/^([a-gA-G][b#]?).*$/);
return root + octave;
});
};