Beats per minute.
Current bar (0-indexed).
Current absolute beat position.
Whether to loop when all patterns finish.
OptionalonFired on each bar boundary.
OptionalonFired on each beat.
OptionalonFired when playback reaches the end (only if loop is false).
ReadonlypatternsRegistered patterns.
True while the sequencer is actively playing.
ReadonlytracksTracks in the sequence.
Total beats of the longest pattern in the sequence.
Start playback from the beginning.
Remove a track by index.
Stop playback and silence all active notes.
Advance the sequencer by dt seconds. Call this every frame from your game loop.
Pattern-based music sequencer.
Uses the synth engine internally - call
update(dt)each frame.Example