Handle detune in the presence of pitch envelope

This commit is contained in:
Aria 2025-10-04 01:37:57 -05:00
parent 99e14dae5c
commit 120f89d57f
5 changed files with 20 additions and 18 deletions

View file

@ -230,12 +230,12 @@ export async function onTriggerSynth(t, value, onended, tables, cps, frameLen) {
begin: t,
end: envEnd,
frequency,
detune: value.detune,
freqspread: value.detune,
position: value.wt,
warp: value.warp,
warpMode: warpmode,
voices: Math.max(value.unison ?? 1, 1),
spread: value.spread,
panspread: value.spread,
phaserand: (value.wtphaserand ?? value.unison > 1) ? 1 : 0,
},
{ outputChannelCount: [2] },