Skip to main content

tex

since 0.9.4

Description

Tells alphaTab to render the given alphaTex.

Signatures

function tex(tex)JavaScript
function tex(tex, tracks)JavaScript
alphaTab('tex', tex)jQuery
alphaTab('tex', tex, tracks)jQuery
void Tex(string tex).net
void Tex(string tex, int[] tracks).net

Parameters

ParametersTypeSummary
texAllstring

The alphaTex encoded string to load.

tracksAllint[]

Which tracks to display.

tracksAllint

Which track to display.

Returns

Nothing

Examples

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.tex("\title 'Test' . 3.3.4");
var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
$('#alphaTab').alphaTab('tex', "\title 'Test' . 3.3.4");
var api = new AlphaTabApi<MyControl>(...);
api.Tex("\title 'Test' . 3.3.4");