Replies: 1 comment 1 reply
-
Hiding of empty staves when rendered is currently not possible, and as you realized: also not easy to add from "outside". With the dynamic resizing, and the important data only being available in the background workers, it's hard to determine the contents and hide elements. Hiding whole SVGs might hide too much as we split them on system level, not staff level. I added #2329 as backlog item to add this capability. It's definitely a good idea, but I'm not sure if this feature can still make it to 1.7.0. Any contributions in this direction are welcome, otherwise it might take a bit. I'm currently travelling for a longer period and only focusing on alphaTex improvements. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case involves using alphaTab's JavaScript API to read Guitar Pro files and display the tablature from multiple select tracks on a static page. This works great other than the wasted space, such as when a rhythm track is notated for an entire song and a lead track has a solo for only a few bars.
I'd like to have alphaTab return it's SVG's with each system only displaying the staves that contain notes within each system (i.e., in each single-row grouping). This is how tablature is commonly notated in published books for space saving.
I don't see a way to do this in the API, does anyone have any other ideas? I'm currently experimenting with solution that monkey-patches the SVGs after the fact, but it's messy and would prefer not to.
Beta Was this translation helpful? Give feedback.
All reactions