How can I use AlphaTexImporter ? #695
-
Thanks for your great job! Maybe it's the best project for guitar players. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.