fix rootNotes with accidentals
This commit is contained in:
parent
d87049c7f8
commit
eaa250a962
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ Pattern.prototype.voicings = function (range) {
|
||||||
Pattern.prototype.rootNotes = function (octave = 2) {
|
Pattern.prototype.rootNotes = function (octave = 2) {
|
||||||
// range = ['G1', 'C3']
|
// range = ['G1', 'C3']
|
||||||
return this.fmap((value) => {
|
return this.fmap((value) => {
|
||||||
const [_, root] = value.match(/^([a-gA-G])[b#]?.*$/);
|
const [_, root] = value.match(/^([a-gA-G][b#]?).*$/);
|
||||||
return root + octave;
|
return root + octave;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue