From 89da9bbdb04dcd71c93ba241cc76c4f29f55c076 Mon Sep 17 00:00:00 2001 From: jeromew Date: Tue, 25 Nov 2025 10:31:53 +0000 Subject: [PATCH] [perf] in `noise`, let noiseMix do the disconnect when it exists --- packages/superdough/synth.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/superdough/synth.mjs b/packages/superdough/synth.mjs index 768638f04..3b27bf6c1 100644 --- a/packages/superdough/synth.mjs +++ b/packages/superdough/synth.mjs @@ -493,7 +493,7 @@ export function getOscillator(s, t, value, onended) { } o.onended = () => { - o.disconnect(); + noiseMix || o.disconnect(); noiseMix?.node.disconnect(); onended(); };