Skip to content

How can I use AlphaTexImporter ? #695

Answered by Danielku15
claroja asked this question in Q&A
Discussion options

You must be logged in to vote

The individual importers are not exposed but you can simply use the ScoreLoader. It also will try loading the data using the AlphaTexImporter. https://www.alphatab.net/docs/guides/lowlevel-apis#loading-files-via-scoreloader

Just use TextEncoder to convert your string to an Uint8Array.

It might eat a bit CPU to try all Importers but it should he insignificant. Maybe I can expose some better way to give hints to the ScoreLoader to avoid crawling them all and also add some AlphaTex loader to the ScoreLoader.

Until then you can try the workaround above.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@claroja
Comment options

Answer selected by claroja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants