From f1cd128e95b819985b23aaee1dfdc8814fe7209b Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Fri, 29 Dec 2017 21:20:29 -0500 Subject: [PATCH] documenting cancelAndHoldAtTime --- Tone/signal/TransportTimelineSignal.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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