The canvas element to render the animation on.
The beats per minute for the animation.
The number of ticks per beat.
The number of beats per bar.
The IAudioLoader instance to load the audio.
Optional
scenes: Scene[]An optional array of scenes to include in the sequence.
The maximum frames per second (not yet implemented).
Optional
conductorThe canvas element to render the animation on.
Adds a scene to the sequence.
The scene to add.
Adds a transition-in listener for a specific scene.
The scene to add the listener to.
The time (in milliseconds) within the scene when the transition should start.
The transition function to apply.
Adds a transition-out listener for a specific scene.
The scene to add the listener to.
The time (in milliseconds) relative to the end of the scene when the transition should start.
The transition function to apply.
Removes a scene from the sequence.
The scene to remove.
Sets the function to be used for resetting the rendering context when switching scenes.
The function to call to reset the context.
Creates a new Sequence.