mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
sync/unsync the LFO
This commit is contained in:
parent
f1cbd96f98
commit
3a0845f009
1 changed files with 4 additions and 4 deletions
|
@ -88,16 +88,16 @@ function(Tone){
|
|||
* LFO from the start of the transport
|
||||
*/
|
||||
Tone.LFO.prototype.sync = function(delay){
|
||||
Tone.Transport.syncSource(this.oscillator, delay);
|
||||
Tone.Transport.syncSignal(this.oscillator.frequency);
|
||||
this.oscillator.sync(delay);
|
||||
this.oscillator.syncFrequency();
|
||||
};
|
||||
|
||||
/**
|
||||
* unsync the LFO from transport control
|
||||
*/
|
||||
Tone.LFO.prototype.unsync = function(){
|
||||
Tone.Transport.unsyncSource(this.oscillator);
|
||||
Tone.Transport.unsyncSignal(this.oscillator.frequency);
|
||||
this.oscillator.unsync();
|
||||
this.oscillator.unsyncFrequency();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue