Skip to content

Is there a way to dynamically show/hide tabs and score for a specific track (or even all tracks)? #1768

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

You must be logged in to vote

You're almost on the right track. Changing the song model to specify which staves to show is correct. But the modification has to happen before the rendering.

You can either hook into the scoreLoaded event or simply access at any time (e.g. as part of UI interactions) the score and/or tracks to do modifications. But at this point they just change the model, but there are not active listeners for any kind of modifications so you have to manually initiate an update.

After the modification you can relayout and redraw the music notation with render

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Danielku15
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