TransportEvent
internal class
TransportEvent is an internal class used by TransportInstance to schedule events. Do no invoke this class directly, it is handled from within Tone.Transport.
Constructor
Section titled “Constructor”new TransportEvent(transport: TransportInstance, opts: Partial<TransportEventOptions>)Parameters
-
transport
TransportInstanceThe transport object which the event belongs to
-
opts
Partial<TransportEventOptions>
Properties
Section titled “Properties”Methods
Section titled “Methods”invoke()
Section titled “invoke()”invoke(time: number): voidInvoke the event callback.
Parameters
-
time
numberThe AudioContext time in seconds of the event
getDefaults()
Section titled “getDefaults()”static
getDefaults(): TransportEventOptionsReturns TransportEventOptions