Merge branch 'main' into glossing/wavetable-synth

This commit is contained in:
Switch Angel AKA Jade Rose 2025-09-25 07:21:17 +02:00
commit ef87f65bef
86 changed files with 3124 additions and 452 deletions

View file

@ -176,7 +176,7 @@ let curves = ['linear', 'exponential'];
export function getPitchEnvelope(param, value, t, holdEnd) {
// envelope is active when any of these values is set
const hasEnvelope = value.pattack ?? value.pdecay ?? value.psustain ?? value.prelease ?? value.penv;
if (!hasEnvelope) {
if (hasEnvelope === undefined) {
return;
}
const penv = nanFallback(value.penv, 1, true);