[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lilypond takes up vertical space for empty staves
From: |
Thomas Morley |
Subject: |
Re: Lilypond takes up vertical space for empty staves |
Date: |
Mon, 4 Jan 2016 18:46:00 +0100 |
Hi Mike,
2016-01-04 18:12 GMT+01:00 Mike Solomon <address@hidden>:
> Hey all,
>
> In the sort-of-minimal example below, Lily is taking up staff space on the
> first and second system when she shouldn’t. Is there any way to get her to
> not account for the empty staves instead of leaving that space?
>
> Cheers,
> MS
>
> *****
>
> \version "2.17.0"
>
> marksLollipop = {
> \time 5/6
> \tempo "With urgency" 4=200
> s2. s4*1/3 | \break
> \time 9/20
> \bar ".|:" s4 s4*4/5 | \bar ":|." \break
> \time 5/8
> s4.
> s4 |
> \time 4/4
> s1 |
> \time 4/4
> s1 |
> \time 1/32
> s32
> \time 4/4
> % wish to welcome you, to
> % munchkin land
> s1 \bar "|."
> }
>
> sopranoLollipop = \relative c''' { \autoBeamOff
> a2. r4*1/3 |
> a4 r4*4/5
> a4.
> a4 |
> a1 |
> \noBreak
> r2.. b64 r32. r16 |
> \noBreak
> s32
> s1
> }
>
> mezzoLollipop = \relative c''' { \autoBeamOff
> a2. r4*1/3 | % we represent the lollipop guild
> a4 r4*4/5 % the lollipop guild
> a4. % the lollipop
> a4 | % guild
> a1 | % and in the name of the
> \noBreak
> r2.. b64 r32. r16 |
> \noBreak
> s32
> s1
> }
>
> ossiaOne = \relative c'' {
> \stopStaff
> s2. s4*1/3 | % we represent the lollipop guild
> s4 s4*4/5 % the lollipop guild
> s4. % the lollipop
> s4 | % guild
> s1 | % and in the name of the
> \startStaff
> \noBreak
> r2..^"OSSIA" b64 r32. r16 |
> \stopStaff
> \noBreak
> s32
> s1
> }
>
> ossiaTwo = \relative c'' {
> \stopStaff
> s2. s4*1/3 | % we represent the lollipop guild
> s4 s4*4/5 % the lollipop guild
> s4. % the lollipop
> s4 | % guild
> s1 | % and in the name of the
> \startStaff
> r2.^"OSSIA'S OSSIA" b64 r8... |
> \stopStaff
> s32
> s1
> }
>
> %%% SCORE
>
> \score {
> \new ChoirStaff <<
> \new Staff \with { instrumentName = \dortyName %shortInstrumentName = #"M."
> } <<
> \new Voice = "sopranoLollipop" { << { \numericTimeSignature
> \sopranoLollipop
> } {
> \marksLollipop
> } {
> \nothing
> }>> }
>>>
> \new StaffGroup \with { \override SystemStartBracket.stencil = ##f } <<
> \new Staff = "ossiaTwo" \with {
> \remove "Time_signature_engraver"
> \hide Clef
> fontSize = #-3
> \override StaffSymbol.staff-space = #(magstep -3)
> \override StaffSymbol.thickness = #(magstep -3)
> }
> { \ossiaTwo }
> \new Staff = "ossia" \with {
> \remove "Time_signature_engraver"
> \hide Clef
> fontSize = #-3
> \override StaffSymbol.staff-space = #(magstep -3)
> \override StaffSymbol.thickness = #(magstep -3)
> }
> { \ossiaOne }
>
> \new Staff = "mezzy" \with { instrumentName = \ttoName
> %shortInstrumentName = #"E."
> } <<
> \new Voice = "mezzoLollipop" { << { \numericTimeSignature
> \mezzoLollipop
> } {
> \nothing
> } >> }
>>>
>>>
>>>
> \layout {
> \context {
> \Staff
> \override VerticalAxisGroup.remove-first = ##t
%% add
\RemoveEmptyStaves
> }
> }
> }
Cheers,
Harm