Compare commits

...

1 Commits

Author SHA1 Message Date
Karol Libardi 3daacba2c3 Added ability to mute a synth/sound after it was triggered 2024-03-04 10:27:55 +01:00
+1
View File
@@ -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);