Since: 0.9.4

tex

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
texAllstringThe alphaTex encoded string to load.
tracksAllint[]Which tracks to display.
tracksAllintWhich 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");