diff --git a/repl/src/voicings.ts b/repl/src/voicings.ts index fb2b6f52..32d0099e 100644 --- a/repl/src/voicings.ts +++ b/repl/src/voicings.ts @@ -42,7 +42,7 @@ Pattern.prototype.voicings = function (range) { Pattern.prototype.rootNotes = function (octave = 2) { // range = ['G1', 'C3'] return this.fmap((value) => { - const [_, root] = value.match(/^([a-gA-G])[b#]?.*$/); + const [_, root] = value.match(/^([a-gA-G][b#]?).*$/); return root + octave; }); };