Skip to main content

alphaTab.rendering.IScoreRenderer

Description

Represents the public interface of the component that can render scores.

 interface IScoreRenderer

Properties

boundsLookup

Gets or sets the lookup which allows fast access to beats at a given position.

error

This event is fired when an error within alphatab occurred.

width

The width of the rendered score.

Methods

destroy()

Destroys the renderer and all related components.

render()

Initiates a re-rendering of the current setup.

renderResult(string)

Requests the rendering of a chunk which was layed out before.

renderScore(Score | null, number[] | null)

Initiates the rendering of the specified tracks of the given score.

resizeRender()

Initiates a resize-optimized re-rendering of the score using the current settings.

updateSettings(Settings)

Updates the settings to the given object.

Events

partialLayoutFinished

Occurs whenever a part of the whole music sheet is layed out but not yet rendered.

partialRenderFinished

Occurs whenever a part of the whole music sheet is rendered and can be displayed.

postRenderFinished

This event is fired when the rendering of the whole music sheet is finished, and all handlers of renderFinished ran.

preRender

Occurs before the rendering of the tracks starts

renderFinished

This event is fired when the rendering of the whole music sheet is finished.