Skip to content

Commit 38ce593

Browse files
committed
Allow penv values to be falsy
1 parent cc27d48 commit 38ce593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/superdough/helpers.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ let curves = ['linear', 'exponential'];
174174
export function getPitchEnvelope(param, value, t, holdEnd) {
175175
// envelope is active when any of these values is set
176176
const hasEnvelope = value.pattack ?? value.pdecay ?? value.psustain ?? value.prelease ?? value.penv;
177-
if (!hasEnvelope) {
177+
if (hasEnvelope === undefined) {
178178
return;
179179
}
180180
const penv = nanFallback(value.penv, 1, true);

0 commit comments

Comments
 (0)