Tone.Draw
↳ EXTENDS ToneTone.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. Tone.Draw makes it easy to schedule callbacks using the AudioContext time and uses requestAnimationFrame.
CONSTRUCTOR
new Tone.Draw ( )EXAMPLE
Members
.anticipation
↝ Number #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).