diff --git a/packages/superdough/sampler.mjs b/packages/superdough/sampler.mjs index 6da8b1d12..b8f10d5da 100644 --- a/packages/superdough/sampler.mjs +++ b/packages/superdough/sampler.mjs @@ -300,7 +300,7 @@ export async function onTriggerSample(t, value, onended, bank, resolveUrl) { envelope.connect(out); bufferSource.onended = function () { bufferSource.disconnect(); - vibratoOscillator.stop(); + vibratoOscillator?.stop(); envelope.disconnect(); out.disconnect(); onended();