Previous: Ossia staves, Up: Modifying single staves
Staff lines can be hidden by removing the
Staff_symbol_engraver from the Staff context. As an
alternative, \stopStaff may be used.
\new Staff \with {
\remove "Staff_symbol_engraver"
}
\relative c''' { a8 f e16 d c b a2 }
Empty staves can be hidden by setting the
\RemoveEmptyStaffContext command in the \layout
block. In orchestral scores, this style is known as ‘Frenched
Score’. By default, this command hides all empty staves in a
score except for those in the first system.
| Note: An empty staff may only include multi-measure rests, skips, spacer rests, or a combination of these. |
\layout {
\context {
\RemoveEmptyStaffContext
}
}
\relative c' <<
\new Staff {
e4 f g a \break
b1 \break
a4 b c2
}
\new Staff {
c,4 d e f \break
R1 \break
f4 g c,2
}
>>
\RemoveEmptyStaffContext can also be used to create ossia
sections for a staff. For details, see Ossia staves.
The \AncientRemoveEmptyStaffContext command may be used to
hide empty staves in ancient music contexts. Similarly,
\RemoveEmptyRhythmicStaffContext may be used to hide empty
RhythmicStaff contexts.
\RemoveEmptyStaffContext,
\AncientRemoveEmptyStaffContext,
\RemoveEmptyRhythmicStaffContext.
Removing the first empty line
The first empty staff can also be removed from the score by setting the
VerticalAxisGroup property remove-first. This can be done
globally inside the \layout block, or locally inside the
specific staff that should be removed. In the latter case, you have to
specify the context (Staff applies only to the current staff) in
front of the property.
The lower staff of the second staff group is not removed, because the setting applies only to the specific staff inside of which it is written.
\layout {
\context {
\RemoveEmptyStaffContext
% To use the setting globally, uncomment the following line:
% \override VerticalAxisGroup #'remove-first = ##t
}
}
\new StaffGroup <<
\new Staff \relative c' {
e4 f g a \break
c1
}
\new Staff {
% To use the setting globally, comment this line,
% uncomment the line in the \layout block above
\override Staff.VerticalAxisGroup #'remove-first = ##t
R1 \break
R
}
>>
\new StaffGroup <<
\new Staff \relative c' {
e4 f g a \break
c1
}
\new Staff {
R1 \break
R
}
>>
Music Glossary: Frenched staff.
Notation Reference: Staff symbol, Ossia staves.
Snippets: Staff notation.
Internals Reference: ChordNames, FiguredBass, Lyrics, Staff, VerticalAxisGroup.
Diese Seite ist für LilyPond-2.11.58 (Entwicklungszweig).
Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.
Ihre Vorschläge für die Dokumentation sind willkommen.