Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Centering multi-measure rests
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
If you want to centre multi-measure rest numbers between the two staves in a piano staff, a custom context can help. <lilypond version="2.24"> \layout { \context { \name PianoMMR \type "Engraver_group" \inherit-acceptability PianoMMR Dynamics \consists "Axis_group_engraver" \override VerticalAxisGroup.staff-affinity = #CENTER \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((basic-distance . 1) (minimum-distance . 1) (padding . 0.5) (stretchability . 1)) \consists "Multi_measure_rest_engraver" \hide MultiMeasureRest \override MultiMeasureRest.Y-extent = #empty-interval \override MultiMeasureRestNumber.Y-offset = #-1 } \context { \PianoStaff \accepts PianoMMR \override VerticalAxisGroup.staff-staff-spacing.padding = #14 } } musicOne = { \clef bass \key f \major \time 3/8 \partial 8 r8 | R4.*7 | } musicTwo = { \clef bass \key f \major \time 3/8 \partial 8 r8 | R4.*7 | } \new PianoStaff << \new Staff \with { \omit MultiMeasureRestNumber } \compressMMRests \musicOne \new PianoMMR \musicOne \new Staff \with { \omit MultiMeasureRestNumber } \compressMMRests \musicTwo >> </lilypond> [[Category:Keyboards]] [[Category:Staff notation]] [[Category:Rhythms]] [[Category:Contexts and engravers]] [[Category:Snippet]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)