This commit is contained in:
Aria 2025-12-13 16:23:47 -06:00
parent 29f7f5c1f8
commit dec037bed5
2 changed files with 2 additions and 1 deletions

View file

@ -74,6 +74,7 @@ const CONTROL_TARGETS = {
shapevol: { node: 'shape', param: 'postgain' },
distort: { node: 'distort', param: 'distort' },
distortvol: { node: 'distort', param: 'postgain' },
distorttype: { node: 'distort', param: 'distort' },
// COMPRESSOR
compressor: { node: 'compressor', param: 'threshold' },

View file

@ -380,7 +380,7 @@ export function registerSynthSounds() {
const holdend = begin + value.duration;
const end = holdend + release + 0.01;
const bus = getSuperdoughAudioController().getBus(value.n ?? 0);
const envGain = bus.connect(gainNode(1));
const envGain = bus.connect(gainNode(0));
getParamADSR(envGain.gain, attack, decay, sustain, release, 0, 1, begin, holdend, 'linear');
const timeoutNode = webAudioTimeout(
ac,