Tone.Event↳ EXTENDS Tone
Tone.Event abstracts away Tone.Transport.schedule and provides a schedulable callback for a single or repeatable events along the timeline.
CONSTRUCTORnew Tone.Event (
The callback to invoke at the time.
The value or values which should be passed to the callback function on invocation.
.state↝ String READONLY #
Returns the playback state of the note, either “started” or “stopped”.
.loop↝ Boolean or Positive #
If the note should loop or not between Tone.Event.loopStart and Tone.Event.loopEnd. An integer value corresponds to the number of loops the Event does after it starts.
.progress↝ NormalRange READONLY #
The current progress of the loop interval. Returns 0 if the event is not started yet or it is not set to loop.
.cancel ( )#
The time after which events will be cancel.
Cancel all scheduled events greater than or equal to the given time
.start ( )#
Start the note at the given time.