Bus fix
This commit is contained in:
parent
29f7f5c1f8
commit
dec037bed5
2 changed files with 2 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ const CONTROL_TARGETS = {
|
||||||
shapevol: { node: 'shape', param: 'postgain' },
|
shapevol: { node: 'shape', param: 'postgain' },
|
||||||
distort: { node: 'distort', param: 'distort' },
|
distort: { node: 'distort', param: 'distort' },
|
||||||
distortvol: { node: 'distort', param: 'postgain' },
|
distortvol: { node: 'distort', param: 'postgain' },
|
||||||
|
distorttype: { node: 'distort', param: 'distort' },
|
||||||
|
|
||||||
// COMPRESSOR
|
// COMPRESSOR
|
||||||
compressor: { node: 'compressor', param: 'threshold' },
|
compressor: { node: 'compressor', param: 'threshold' },
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ export function registerSynthSounds() {
|
||||||
const holdend = begin + value.duration;
|
const holdend = begin + value.duration;
|
||||||
const end = holdend + release + 0.01;
|
const end = holdend + release + 0.01;
|
||||||
const bus = getSuperdoughAudioController().getBus(value.n ?? 0);
|
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');
|
getParamADSR(envGain.gain, attack, decay, sustain, release, 0, 1, begin, holdend, 'linear');
|
||||||
const timeoutNode = webAudioTimeout(
|
const timeoutNode = webAudioTimeout(
|
||||||
ac,
|
ac,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue