Skip to content

Commit 7564169

Browse files
committed
Solves Issue #1 Effects now stop when removed.
1 parent 03ddbdd commit 7564169

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

distr/Pizzicato.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,16 @@
413413
enumerable: true,
414414

415415
value: function(effect) {
416+
416417
var index = this.effects.indexOf(effect);
417418

418-
if (index === -1) return;
419+
if (index === -1)
420+
return;
421+
422+
this.fadeNode.disconnect();
423+
424+
for (var i = 0; i < this.effects.length; i++)
425+
this.effects[i].outputNode.disconnect();
419426

420427
this.effects.splice(index, 1);
421428
this.connectEffects();

0 commit comments

Comments
 (0)