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 |
fun tex(tex: String, tracks: alphaTab.collections.DoubleList? = null): UnitAndroid |
Parameters​
Parameters | Type | Summary |
---|---|---|
texAll | string | The alphaTex encoded string to load. |
tracksAll | int[] | Which tracks to display. |
tracksAll | int | Which track to display. |
Returns​
Nothing
Examples​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.tex("\title 'Test' . 3.3.4");
const 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");
val api = AlphaTabApi<MyControl>(...)
api.tex("\title 'Test' . 3.3.4");