Skip to content

Commit dd67c18

Browse files
committed
monosynth: remove unused _isOn
1 parent dc82792 commit dd67c18

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/monosynth.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ define(function (require) {
7171
this.oscillator.start();
7272
this.connect();
7373

74-
//Audiovoices are connected to soundout by default
75-
76-
this._isOn = false;
77-
7874
p5sound.soundArray.push(this);
7975
};
8076

@@ -159,7 +155,6 @@ define(function (require) {
159155
var secondsFromNow = ~~secondsFromNow;
160156
var freq = noteToFreq(note);
161157
var vel = velocity || 0.1;
162-
this._isOn = true;
163158
this.oscillator.freq(freq, 0, secondsFromNow);
164159
this.env.ramp(this.output.gain, secondsFromNow, vel);
165160
};
@@ -187,7 +182,6 @@ define(function (require) {
187182
p5.MonoSynth.prototype.triggerRelease = function (secondsFromNow) {
188183
var secondsFromNow = secondsFromNow || 0;
189184
this.env.ramp(this.output.gain, secondsFromNow, 0);
190-
this._isOn = false;
191185
};
192186

193187
/**

0 commit comments

Comments
 (0)