mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
use : instead of _
This commit is contained in:
parent
14508e91a9
commit
a50bd6375d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user