Skip to main content

ScoreRenderer

The ScoreRenderer is one of the low level APIs that can be used if no full alphaTab API object with UI interaction can be used or is needed. It is used to render a given score into a visual music sheet.

This page describes all methods, properties and events exposed by this class.

NameSummary
Events
errorJavaScript
Error.net
errorAndroid
This event is fired when an error within alphatab occurred.
partialLayoutFinishedJavaScript
PartialLayoutFinished.net
partialLayoutFinishedAndroid
Occurs whenever a part of the whole music sheet is layed out.
partialRenderFinishedJavaScript
PartialRenderFinished.net
partialRenderFinishedAndroid
Occurs whenever a part of the whole music sheet is rendered and can be displayed.
postRenderFinishedJavaScript
PostRenderFinished.net
postRenderFinishedAndroid
This event is fired when the rendering of the whole music sheet is finished, and all handlers of RenderFinished ran.
preRenderJavaScript
PreRender.net
preRenderAndroid
Occurs before the rendering of the tracks starts
renderFinishedJavaScript
RenderFinished.net
renderFinishedAndroid
This event is fired when the rendering of the whole music sheet is finished.
Methods
destroy()JavaScript
Destroy().net
destroy()Android
Destroys the renderer and all related components.
render()JavaScript
Render().net
render()Android
Initiates a re-rendering of the current setup.
renderResult()JavaScript
RenderResult().net
renderResult()Android
Requests the rendering of a chunk which was layed out before.
renderScore()JavaScript
RenderScore().net
renderScore()Android
Initiates the rendering of the specified tracks of the given score.
resizeRender()JavaScript
ResizeRender().net
resizeRender()Android
Initiates a resize-optimized re-rendering of the score using the current settings.
updateSettings()JavaScript
UpdateSettings().net
updateSettings()Android
Updates the settings to the given object.
Properties
boundsLookupJavaScript
BoundsLookup.net
boundsLookupAndroid
The lookup which allows fast access to beats at a given position
widthJavaScript
Width.net
widthAndroid
The width of the rendered score