mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
soundfont mixing
This commit is contained in:
@@ -146,7 +146,7 @@ export function registerSoundfonts() {
|
||||
const envGain = ctx.createGain();
|
||||
const node = bufferSource.connect(envGain);
|
||||
const holdEnd = time + duration;
|
||||
getParamADSR(node.gain, attack, decay, sustain, release, 0, 1, time, holdEnd, 'linear');
|
||||
getParamADSR(node.gain, attack, decay, sustain, release, 0, 0.3, time, holdEnd, 'linear');
|
||||
let envEnd = holdEnd + release + 0.01;
|
||||
|
||||
bufferSource.stop(envEnd);
|
||||
|
||||
Reference in New Issue
Block a user