Fix for a zero appearing (first) in FM's ADSR
This commit is contained in:
parent
ed5bf3b3fc
commit
3dd667e825
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue