Linked Staves / Tablature / Multi-Staff Instruments

• Feb 18, 2017 - 17:11

First a possible bug:
1) Edit/Instruments... Add a guitar staff, then add a guitar tablature staff as a linked staff, linked to the guitar staff.
2) The resulting staves are both treble clef, the linked staff is not a tablature staff.

Next, some questions:
1) What exactly is the purpose of linked staves? I would think that linking notation and tablature staves for a single guitar would be a perfect use for them, as the linked staves contain exactly the same notes, modifying one staff flows the changes through to the other staff.
2) What is the internal structure for keyboard instruments, which have two staves that are not linked? By internal structure I mean the C++ code. My code often loops over the staves in a score to determine various things. How should I determine if an instrument (part) has multiple staves that are not linked? It seem that I should probably not be iterating over staves, but instead over parts, and for each part I should be checking the part.nstaves() for the number of staves for this part. Is that correct?


Comments

In reply to by cadiz1

I was misunderstanding the interface. I thought that my selection in the list of instruments would be the type of linked staff I was adding. So Add Staff and Add Linked Staff simply add a duplicate staff to the selected instrument in the right-hand list. It's totally disconnected from the Add button.

I would suggest disabling the Add button when the Add Staff and Add Linked Staves are enabled. The selected item in the left-hand list is not highlighted at that time, so you are adding blindly. The interface is a bit confusing in this regard.

Similarly, the up/down arrow buttons are enabled when the left list is selected, even though the selected item in the right list is not highlighted.

Is this highlighting different in different operating systems? I'm on Win10. I think they all remove the highlight when the list loses focus, but I think there are also ways to maintain the highlight without focus, if that's what you desire. Sometimes the highlight is separate from the dotted lines that are the focus rectangle. It's been a long time since I coded that kind of stuff.

Do you still have an unanswered question? Please log in first to post your question.