The amount of time before the scheduled time that the callback can be invoked. Default is half the time of an animation frame (0.008 seconds).
ReadonlycontextThe context belonging to the node.
Set this debug flag to log all events that happen in this class.
The duration after which events are not invoked.
ReadonlynameThe name of the class
Indicates if the instance was disposed. 'Disposing' an instance means that all of the Web Audio nodes that were created for the instance are disconnected and freed for garbage collection.
The duration in seconds of one sample.
disconnect and dispose.
Set multiple properties at once with an object.
Convert the incoming time to seconds. This is calculated against the current TransportInstance bpm
Draw is useful for synchronizing visuals and audio events. Callbacks from Tone.Transport or any of the Tone.Event classes always happen before the scheduled time and are not synchronized to the animation frame so they are not good for triggering tightly synchronized visuals and sound. Draw makes it easy to schedule callbacks using the AudioContext time and uses requestAnimationFrame.
Example