mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +00:00
soundfont mixing
This commit is contained in:
parent
eefa90a2bc
commit
e6d028fd6b
@ -146,7 +146,7 @@ export function registerSoundfonts() {
|
|||||||
const envGain = ctx.createGain();
|
const envGain = ctx.createGain();
|
||||||
const node = bufferSource.connect(envGain);
|
const node = bufferSource.connect(envGain);
|
||||||
const holdEnd = time + duration;
|
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;
|
let envEnd = holdEnd + release + 0.01;
|
||||||
|
|
||||||
bufferSource.stop(envEnd);
|
bufferSource.stop(envEnd);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user