mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
sync inherited from Tone.Source
This commit is contained in:
parent
535ef8133b
commit
9bb8df60a8
1 changed files with 0 additions and 24 deletions
|
@ -80,30 +80,6 @@ function(Tone){
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Sync the oscillator to the transport
|
||||
*
|
||||
* the current ratio between the oscillator and the Transport BPM
|
||||
* is fixed and any change to the Transport BPM will change this
|
||||
* oscillator in that same ratio
|
||||
*
|
||||
* Transport start/pause/stop will also start/pause/stop the oscillator
|
||||
*
|
||||
* @param {Tone.Time=} delay optional delay time before starting the source
|
||||
*/
|
||||
Tone.Oscillator.prototype.sync = function(delay){
|
||||
Tone.Transport.sync(this, delay);
|
||||
// Tone.Transport.syncSignal(this.frequency);
|
||||
};
|
||||
|
||||
/**
|
||||
* unsync the oscillator from the Transport
|
||||
*/
|
||||
Tone.Oscillator.prototype.unsync = function(){
|
||||
Tone.Transport.unsync(this);
|
||||
// this.frequency.unsync();
|
||||
};
|
||||
|
||||
/**
|
||||
* exponentially ramp the frequency of the oscillator over the rampTime
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue