Gianmaria Lari <[email protected]> writes:
> On Wed, 23 Jan 2019 at 14:53, David Kastrup <[email protected]> wrote:
>
>> Gianmaria Lari <[email protected]> writes:
>> [...]
>
>> To make lilypond print anyway a staff only containing rests [....]
>>
>
>
>> That does not look simpler than
>>
>> \new Staff \with {
>> keepAliveInterfaces = #'(
>> rest-interface
>> 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
>> )
>> } ...
>>
>
> Thanks a lot David!!!
> Here it is a complete example that compiles (just in case others need it).
>
> \version "2.19.82"
> rh = { \clef treble
> a1 b1 c'1 d'1 \break
> a1 b1 c'1 d'1 \break
> a1 b1 c'1 d'1 \break}
>
> lh = { \clef bass
> r1 r r r
> a1 a a a
> s1 s s s}
>
> \score
> {
> \new PianoStaff <<
> \new Staff \rh
> \new Staff \with {
> keepAliveInterfaces =
> #'( rest-interface 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
> stanza-number-interface
> )
> } \lh
> >>
> \layout {
> \context {
> \PianoStaff
> \RemoveEmptyStaves
> \remove "Keep_alive_together_engraver"
> \override VerticalAxisGroup.remove-first = ##t
> }
> }
> }
AFAIR, \PianoStaff \remove "Keep_alive_together_engraver" is the same as
\GrandStaff . And \RemoveEmptyStaves \override
VerticalAxisGroup.remove-first = ##t is the same as
\RemoveAllEmptyStaves .
So it's more like you want
\score
{
\new GrandStaff <<
\new Staff \rh
\new Staff \with {
keepAliveInterfaces =
#'( rest-interface 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
stanza-number-interface
)
} \lh
>>
\layout {
\context {
\GrandStaff
\RemoveAllEmptyStaves
}
}
}
--
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user