Skip to content

Commit

Permalink
fix: sampler broke without vibrato
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Nov 9, 2023
1 parent 0052d34 commit 2a09f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/superdough/sampler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2a09f9e

Please sign in to comment.