mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
can mute the output
This commit is contained in:
parent
24692aa343
commit
a25767cfbe
1 changed files with 15 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue