Merge branch 'main' into pump

This commit is contained in:
Jade (Rose) Rowland 2025-08-16 23:06:36 -04:00
commit 9648e35de2
10 changed files with 142 additions and 43 deletions

View file

@ -265,7 +265,7 @@ export function applyFM(param, value, begin) {
modulator = fmmod.node;
stop = fmmod.stop;
if (![fmAttack, fmDecay, fmSustain, fmRelease, fmVelocity].find((v) => v !== undefined)) {
if (![fmAttack, fmDecay, fmSustain, fmRelease, fmVelocity].some((v) => v !== undefined)) {
// no envelope by default
modulator.connect(param);
} else {