Re: engraver to change staff name based on visibility of related staff?

2017-07-06 Thread Shevek
Sorry for the repeat messages. I now have a working version. This is a callback for InstrumentName.after-line-breaking. It looks at whether the next Staff below is alive on the current system, and if it's not, displays the instrumentName for this Staff instead of the shortInstrumentName. This is a

Re: engraver to change staff name based on visibility of related staff?

2017-07-06 Thread Shevek
Making some progress on this. I've managed to figure out how to use ly:grob-get-vertical-axis-group-index to only look at the current Staff and the next one below. That's clunkier than finding the VerticalAxisGroups that belong to the same StaffGroup, but it's a start. My problem now is finding a

engraver to change staff name based on visibility of related staff?

2017-06-17 Thread Shevek
Following up on an aspect of the discussion on parts sharing a staff (http://lilypond.1069038.n5.nabble.com/parts-sharing-a-staff-tt203873.html). I've spent quite a few hours over the last day trying to figure out how engravers work and how I might take a crack at writing something to