tex
Description​
Tells alphaTab to render the given alphaTex.
- JavaScript
- C#
- Kotlin
tex(tex: string, tracks?: number[]): void
void Tex(string tex, IList<double>? tracks)
fun tex(tex: String, tracks: alphaTab.collections.DoubleList?): Unit
Parameter | Summary |
---|---|
texAll | The alphaTex code to render. |
tracksAll | If set, the given tracks will be rendered, otherwise the first track only will be rendered. |
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.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");