Merge branch 'main' into reverb
This commit is contained in:
commit
d24cf8e7ec
3 changed files with 1638 additions and 1635 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue