Tone.Event
↳ EXTENDS ToneTone.Event abstracts away Tone.Transport.schedule and provides a schedulable callback for a single or repeatable events along the timeline.
CONSTRUCTOR
new Tone.Event (DEFAULTS
EXAMPLE
Members
.humanize
↝ Boolean or Time #If set to true, will apply small random variation to the callback time. If the value is given as a time, it will randomize by that amount.
EXAMPLE
.loop
↝ Boolean or Positive #If the note should loop or not between Tone.Event.loopStart and Tone.Event.loopEnd. If set to true, the event will loop indefinitely, if set to a number greater than 1 it will play a specific number of times, if set to false, 0 or 1, the part will only play once.
.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.
Methods
.cancel ( )
#The time after which events will be cancel.
this
Cancel all scheduled events greater than or equal to the given time
.start ( )
#When the note should start.
this
Start the note at the given time.
.stop ( )
#When the note should stop.
this
Stop the Event at the given time.