soundfont mixing
This commit is contained in:
parent
eefa90a2bc
commit
e6d028fd6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue