RemoveEmptyStaves and the ambitus_engraver
> I'm not top posting. It seems that \RemoveEmptyStaves doesn't play very well with the ambitus_engraver. In this example, I'm trying to get the treble staff removed in the first two systems, and appear with an ambitus on the third. It is removed correctly in the first system. But reappears in the second. If I comment out the line (*), then the staves are removed as needed, but the ambitus is too of course. --- \version "2.17.11" \paper { ragged-right = ##t } \layout { \context { \type "Engraver_group" \name MainSequence \accepts Voice \consists Ambitus_engraver %% (*) \override AmbitusNoteHead.break-visibility = ##(#f #t #t) \override AmbitusLine.break-visibility = ##(#f #t #t) \override AmbitusAccidental.break-visibility = ##(#f #t #t) } \context { \Staff \accepts MainSequence \override VerticalAxisGroup.remove-empty = ##t \override VerticalAxisGroup.remove-first = ##t } } \new ChoirStaff << \new Staff \relative c' { \clef treble \skip 1*8 \new MainSequence { \repeat unfold 2 { e1 e'1 } } \bar "|." } \new Staff \relative c { \clef bass \repeat unfold 4 {e1} \break \repeat unfold 4 {e1} \break \repeat unfold 4 {e1} } >> --- It looks as if the ambitus is keeping the system alive. I can't get it to work by setting keepAliveInterfaces in the staff context either. Has anyone any ideas? Thanks for any help Roman ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: RemoveEmptyStaves and the ambitus_engraver
On Mon, Apr 1, 2013 at 3:41 PM, Roman Stawski wrote: >> I'm not top posting. > > It seems that \RemoveEmptyStaves doesn't play very well with the > ambitus_engraver. > > In this example, I'm trying to get the treble staff removed in the > first two systems, and appear with an ambitus on the third. > > It is removed correctly in the first system. But reappears in the > second. If I comment out the line (*), then the staves are removed as > needed, but the ambitus is too of course. Interesting. If i were you, i'd place the skips inside MainSequence and have the ambitus appear at the very beginning, and keep that first system alive (which makes some sense in my opinion): \new Staff \relative c' { \clef treble \new MainSequence { \skip 1*8 \repeat unfold 2 { e1 e'1 } } } hth, Janek Warchoł ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: RemoveEmptyStaves and the ambitus_engraver
Janek Warchoł gmail.com> writes: > > On Mon, Apr 1, 2013 at 3:41 PM, Roman Stawski stawski.fr> wrote: > > Interesting. If i were you, i'd place the skips inside MainSequence > and have the ambitus appear at the very beginning, and keep that first > system alive (which makes > some sense in my opinion): > > \new Staff \relative c' { > \clef treble > \new MainSequence { > \skip 1*8 > \repeat unfold 2 { e1 e'1 } > } > } Unfortunately, in the real piece that doesn't work so well. Ah well, I'll try and find a work around... Cześć Roman ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user