TimelineQuantizedTrigger Node
Starts a synchronized player on the next quantization boundary. The input bus takes a Timeline output; after the play action is called, the output carries a timeline position that starts from 0 at the next boundary, so a SynchronizedAudioPlayer connected to the output starts in time with the beat. Boundaries are derived from bpm and quantization, a fraction of a 4-beat bar.
Configuration
This object does not provide any configuration options.
Properties
Inherits properties from its parents, Node, SwitchboardObject.
bpm
Type: Int
Default: 0
Unit: BPM
Tempo in beats per minute used to place the quantization boundaries. It should match the tempo of the timeline driving the input. Fractional values are truncated to whole numbers. Must be set before play can trigger.
quantization
Type: Float
Default: 0.25
Spacing of the boundaries playback can start on, as a fraction of a 4-beat bar: 0.25 is one beat and 1 is a whole bar.
Actions
Inherits actions from its parent, SwitchboardObject.
play
Queues playback to start on the next quantization boundary, where the output position restarts from 0. Calling it while already playing restarts the output position at the next boundary.
Parameters
None.
Return Value
Boolean — true if playback was queued, false if a start was already queued.
Events
This object does not provide any events.