can mute the output

This commit is contained in:
Yotam Mann 2016-05-14 18:07:53 -04:00
parent 24692aa343
commit a25767cfbe

View file

@ -260,6 +260,21 @@ function(Tone){
}
});
/**
* Mute the output.
* @memberOf Tone.LFO#
* @type {Boolean}
* @name mute
*/
Object.defineProperty(Tone.LFO.prototype, "mute", {
get : function(){
return this._oscillator.mute;
},
set : function(mute){
this._oscillator.mute = mute;
}
});
/**
* Returns the playback state of the source, either "started" or "stopped".
* @type {Tone.State}