Am 03.06.2016 um 06:39 schrieb David Wright:
On Thu 02 Jun 2016 at 21:14:17 (-0400), Andrew Bernard wrote:
I have a two stave piece using a PianoStaff. In some sections I need to
hide the unused lower stave for a number of bars. Using \RemoveEmptyStaves
or \RemoveAllmptyStaves does nothing. There are only spacer rests in the
staff in question.
The NR in Section A.20 says these functions 'Remove staves which are
considered to be empty according to the list of interfaces set by
keepAliveInterfaces, including those in the first system.’ But what does it
mean for a staff to be considered empty?
This is how keepAliveInterfaces is defined:
keepAliveInterfaces = #'(
bass-figure-interface
chord-name-interface
cluster-beacon-interface
fret-diagram-interface
lyric-syllable-interface
note-head-interface
tab-note-head-interface
lyric-interface
percent-repeat-item-interface
percent-repeat-interface
;; need this, as stanza numbers are items, and appear only once.
stanza-number-interface
)
A Staff which doesn’t contain items of these types is removed (f. e. a
Staff only containig rests, spacer rests, but also key changes and some
other things).
AFAICT just change PianoStaff to GrandStaff. I think I see the logic
in LP's behaviour.
PianoStaff is an alias for GrandStaff except that it contains the
Keep_alive_together_engraver. So using a GrandStaff should be the same
as PianoStaff \with { \remove Keep_alive_together_engraver }
This can be found in the Internals Reference and in the file
engraver-init.ly.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user