diff --git a/Tone/signal/TransportTimelineSignal.js b/Tone/signal/TransportTimelineSignal.js index 6ea5d859..6040ed76 100644 --- a/Tone/signal/TransportTimelineSignal.js +++ b/Tone/signal/TransportTimelineSignal.js @@ -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