mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
fix asNumber
This commit is contained in:
parent
273cb81da0
commit
55d5cc9308
@ -450,7 +450,7 @@ export class Pattern {
|
|||||||
// set context type to midi to let the player know its meant as midi number and not as frequency
|
// set context type to midi to let the player know its meant as midi number and not as frequency
|
||||||
return new Hap(hap.whole, hap.part, toMidi(hap.value), { ...hap.context, type: 'midi' });
|
return new Hap(hap.whole, hap.part, toMidi(hap.value), { ...hap.context, type: 'midi' });
|
||||||
}
|
}
|
||||||
if (dropfail) {
|
if (dropfails) {
|
||||||
// return 'nothing'
|
// return 'nothing'
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
@ -461,10 +461,6 @@ export class Pattern {
|
|||||||
throw new Error('cannot parse as number: "' + hap.value + '"');
|
throw new Error('cannot parse as number: "' + hap.value + '"');
|
||||||
return hap;
|
return hap;
|
||||||
});
|
});
|
||||||
if (dropfail) {
|
|
||||||
return result._removeUndefineds();
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
round() {
|
round() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user