using Tone.seconds instead of Tone.position in start/stop

so that it can be fed straight into getStateAtTime
This commit is contained in:
Yotam Mann 2016-10-01 16:26:37 -04:00
parent 66189a4b84
commit b07577d53d

View file

@ -144,7 +144,7 @@ function(Tone){
*/
Tone.Source.prototype.start = function(time, offset, duration){
if (this.isUndef(time) && this._synced){
time = Tone.Transport.position;
time = Tone.Transport.seconds;
} else {
time = this.toSeconds(time);
}
@ -178,7 +178,7 @@ function(Tone){
*/
Tone.Source.prototype.stop = function(time){
if (this.isUndef(time) && this._synced){
time = Tone.Transport.position;
time = Tone.Transport.seconds;
} else {
time = this.toSeconds(time);
}