documenting cancelAndHoldAtTime

This commit is contained in:
Yotam Mann 2017-12-29 21:20:29 -05:00
parent b4feef6776
commit f1cd128e95

View file

@ -165,12 +165,16 @@ define(["Tone/core/Tone", "Tone/core/Transport", "Tone/signal/Signal", "Tone/typ
return this;
};
/**
* This is similar to [cancelScheduledValues](#cancelScheduledValues) except
* it holds the automated value at time until the next automated event.
* @param {Time} time
* @returns {Tone.TransportTimelineSignal} this
*/
Tone.TransportTimelineSignal.prototype.cancelAndHoldAtTime = function (time) {
return Tone.Signal.prototype.cancelAndHoldAtTime.call(this, this.toSeconds(time));
return Tone.Signal.prototype.cancelAndHoldAtTime.call(this, Tone.TransportTime(time));
};
/**
* Dispose and disconnect
* @return {Tone.TransportTimelineSignal} this