Merge branch 'main' into glossing/lfo-upgrades
This commit is contained in:
commit
12f9af227c
18 changed files with 699 additions and 146 deletions
|
|
@ -7,6 +7,7 @@ import {
|
|||
getPitchEnvelope,
|
||||
getVibratoOscillator,
|
||||
onceEnded,
|
||||
releaseAudioNode,
|
||||
} from '@strudel/webaudio';
|
||||
import gm from './gm.mjs';
|
||||
|
||||
|
|
@ -172,9 +173,8 @@ export function registerSoundfonts() {
|
|||
bufferSource.stop(envEnd);
|
||||
const stop = (releaseTime) => {};
|
||||
onceEnded(bufferSource, () => {
|
||||
bufferSource.disconnect();
|
||||
vibratoOscillator?.stop();
|
||||
node.disconnect();
|
||||
releaseAudioNode(bufferSource);
|
||||
releaseAudioNode(vibratoOscillator);
|
||||
onended();
|
||||
});
|
||||
return { node, stop, source: bufferSource };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue