mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
can now use _ as a replacement for space in scales
This commit is contained in:
parent
2d5064bd5b
commit
14508e91a9
@ -146,6 +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('_', ' ');
|
||||
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