use : instead of _

This commit is contained in:
Felix Roos 2023-03-03 12:37:25 +01:00
parent 14508e91a9
commit a50bd6375d

View File

@ -146,7 +146,7 @@ export const scale = register('scale', function (scale /* : string */, pat) {
let note = isObject ? hap.value.n : hap.value;
const asNumber = Number(note);
if (!isNaN(asNumber)) {
scale = scale.replaceAll('_', ' ');
scale = scale.replaceAll(':', ' ');
let [tonic, scaleName] = Scale.tokenize(scale);
const { pc, oct = 3 } = Note.get(tonic);
note = scaleOffset(pc + ' ' + scaleName, asNumber, pc + oct);