Fix for a zero appearing (first) in FM's ADSR

This commit is contained in:
Aria
2025-08-10 17:11:59 -05:00
parent ed5bf3b3fc
commit 3dd667e825
+1 -1
View File
@@ -264,7 +264,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 {