mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 16:17:58 +00:00
correctly restarting PulseOscillator
This commit is contained in:
parent
ee18f87106
commit
54276555f2
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ define(["Tone/core/Tone", "Tone/source/Source", "Tone/source/Oscillator",
|
|||
*/
|
||||
Tone.PulseOscillator.prototype.restart = function(time){
|
||||
this._sawtooth.restart(time);
|
||||
this._widthGate.gain.cancelScheduledValues(time);
|
||||
this._widthGate.gain.setValueAtTime(1, time);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue