Skip to main content

tex

since 0.9.4

Description​

Tells alphaTab to render the given alphaTex.

tex(tex: string, tracks?: number[]): void
ParameterSummary
texAll

The alphaTex code to render.

tracksAll

If set, the given tracks will be rendered, otherwise the first track only will be rendered.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.tex("\\title 'Test' . 3.3.4");