Create new render context instance.
Draw contents of attached music document to attached canvas.
Draw given music object hilighted.
Optional
obj: MusicInterfaceMusic object or undefined to remove hilighting.
Draw given staff position hilighted.
Optional
staffPos: { diatonicId: number; scoreRow: MScoreRow }Staff position (score row and diatonic id) or undefined to remove hilighting.
Set target canvas html element for this render context.
HTML canvas element or element id.
Attach music document to this render context.
Optional
doc: MDocumentMusic document.
Set score event listener.
Score event listener.
Render context class.