Skip to content

Commit

Permalink
p5.Delay patch dispose method, p5.Filter module export (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
therewasaguy authored Jun 21, 2017
1 parent 9788312 commit 38f614a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/delay.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ define(function (require) {
* </code></div>
*/
p5.Delay = function() {
p5.Effect.call(this);
Effect.call(this);

this._split = this.ac.createChannelSplitter(2);
this._merge = this.ac.createChannelMerger(2);
Expand All @@ -82,8 +82,8 @@ define(function (require) {
*/
this.rightDelay = this.ac.createDelay();

this._leftFilter = new p5.Filter();
this._rightFilter = new p5.Filter();
this._leftFilter = new Filter();
this._rightFilter = new Filter();
this._leftFilter.disconnect();
this._rightFilter.disconnect();

Expand Down Expand Up @@ -266,8 +266,8 @@ define(function (require) {
Effect.prototype.dispose.apply(this);

this._split.disconnect();
this._leftFilter.disconnect();
this._rightFilter.disconnect();
this._leftFilter.dispose();
this._rightFilter.dispose();
this._merge.disconnect();
this._leftGain.disconnect();
this._rightGain.disconnect();
Expand Down
2 changes: 2 additions & 0 deletions src/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,6 @@ define(function (require) {
p5.Filter.call(this, 'bandpass');
};
p5.BandPass.prototype = Object.create(p5.Filter.prototype);

return p5.Filter;
});

0 comments on commit 38f614a

Please sign in to comment.