Displays a pianoroll with pitches on the vertical axis and time on the horizontal. When connected to a player, the visualizer can also highlight the notes being currently played.
@param sequence The
NoteSequence to be visualized.
@param canvas The element where the visualization should be displayed.
@param config Visualization configuration options.
Redraws the entire note sequence, optionally painting a note as active
(Optional) If specified, this
Note will be painted
in the active color.
The x position of the painted active note. Useful for automatically advancing the visualization if the note was painted outside of the screen.
Generated using TypeDoc