Merge branch 'main' into reverb

This commit is contained in:
vmilovidov 2023-10-07 19:50:05 +04:00 committed by GitHub
commit d24cf8e7ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1638 additions and 1635 deletions

View file

@ -150,6 +150,9 @@ export const scale = register('scale', function (scale, pat) {
return pat.withHap((hap) => {
const isObject = typeof hap.value === 'object';
let note = isObject ? hap.value.n : hap.value;
if (isObject) {
delete hap.value.n; // remove n so it won't cause trouble
}
const asNumber = Number(note);
if (!isNaN(asNumber)) {
// TODO: worth keeping for supporting ':' in (non-mininotation) strings?