use : instead of _
This commit is contained in:
parent
14508e91a9
commit
a50bd6375d
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ export const scale = register('scale', function (scale /* : string */, pat) {
|
||||||
let note = isObject ? hap.value.n : hap.value;
|
let note = isObject ? hap.value.n : hap.value;
|
||||||
const asNumber = Number(note);
|
const asNumber = Number(note);
|
||||||
if (!isNaN(asNumber)) {
|
if (!isNaN(asNumber)) {
|
||||||
scale = scale.replaceAll('_', ' ');
|
scale = scale.replaceAll(':', ' ');
|
||||||
let [tonic, scaleName] = Scale.tokenize(scale);
|
let [tonic, scaleName] = Scale.tokenize(scale);
|
||||||
const { pc, oct = 3 } = Note.get(tonic);
|
const { pc, oct = 3 } = Note.get(tonic);
|
||||||
note = scaleOffset(pc + ' ' + scaleName, asNumber, pc + oct);
|
note = scaleOffset(pc + ' ' + scaleName, asNumber, pc + oct);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue