mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
using Tone.seconds instead of Tone.position in start/stop
so that it can be fed straight into getStateAtTime
This commit is contained in:
parent
66189a4b84
commit
b07577d53d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue