Tone.Loop↳ EXTENDS Tone
Tone.Loop creates a looped callback at the specified interval. The callback can be started, stopped and scheduled along the Transport’s timeline.
CONSTRUCTORnew Tone.Loop (
.humanize↝ Boolean or Time #
Random variation +/-0.01s to the scheduled time. Or give it a time value which it will randomize by.
.iterations↝ Positive #
The number of iterations of the loop. The default value is Infinity (loop forever).
.playbackRate↝ Time #
The playback rate of the loop. The normal playback rate is 1 (no change). A
playbackRate of 2 would be twice as fast.
.progress↝ NormalRange READONLY #
The progress of the loop as a value between 0-1. 0, when the loop is stopped or done iterating.
.cancel ( )#
The time after which events will be cancel.
Cancel all scheduled events greater than or equal to the given time
.start ( )#
Start the loop at the specified time along the Transport’s timeline.