PianoRollSVGVisualizer
constructor.
The NoteSequence
to be visualized.
The element where the visualization should be displayed.
(optional) Visualization configuration options.
Redraws the entire note sequence if it hasn't been drawn before, optionally painting a note as active
(Optional) If specified, this Note
will be painted
in the active color.
(Optional) If specified and the note being painted is offscreen, the parent container will be scrolled so that the note is in view.
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
Displays a pianoroll as an SVG. Pitches are the vertical axis and time is the horizontal. When connected to a player, the visualizer can also highlight the notes being currently played.
Unlike PianoRollCanvasVisualizer which looks similar, PianoRollSVGVisualizer does not redraw the entire sequence when activating a note.