mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-30 16:33:19 -04:00
Added ability to mute a synth/sound after it was triggered
This commit is contained in:
@@ -518,6 +518,7 @@ export const superdough = async (value, deadline, hapDuration) => {
|
||||
// toDisconnect = all the node that should be disconnected in onended callback
|
||||
// this is crucial for performance
|
||||
toDisconnect = chain.concat([delaySend, reverbSend, analyserSend]);
|
||||
return { mute: (dt) => post.gain.linearRampToValueAtTime(0, ac.currentTime + dt) };
|
||||
};
|
||||
|
||||
export const superdoughTrigger = (t, hap, ct, cps) => superdough(hap, t - ct, hap.duration / cps, cps);
|
||||
|
||||
Reference in New Issue
Block a user