Re: Centered number of bars of multi-measure rest in piano staff?
Hi all, >> Just like in a piano staff we can have centred dynamics between the two >> staves, can Lilypond also centre the number of bars a multi-measure rest >> lasts? > This is how I would do it If the vertical spacing changes, this would required manual adjustment: %%% SNIPPET BEGINS \version "2.24.3" \layout { \context { \PianoStaff \accepts PianoMMR \override VerticalAxisGroup.staff-staff-spacing.padding = #14 } } musicOne = { \clef bass \key f \major \time 3/8 \partial 8 \omit MultiMeasureRestNumber r8 | R4.*7 | } musicTwo = { \clef bass \key f \major \time 3/8 \partial 8 r8 | \offset MultiMeasureRestNumber.Y-offset 1 R4.*7 | } \new PianoStaff << \new Staff \compressMMRests \musicOne \new Staff \compressMMRests \musicTwo >> %%% SNIPPET ENDS If you want to have it centred automagically, I’d suggest defining a new context, and omitting the MMRNumber from both upper and lower staff contexts: %%% SNIPPET BEGINS \version "2.24.3" \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 >> %%% SNIPPET ENDS Hope that helps! Kieren. __ My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours.
Re: Centered number of bars of multi-measure rest in piano staff?
Nice, Knute, thanks, that gives me what I wanted. I had had something similar in mind, but wasn’t able to carry it out. Sent with [Proton Mail](https://proton.me/) secure email. On Wednesday, May 22nd, 2024 at 20:36, Knute Snortum wrote: > On Wed, May 22, 2024 at 10:43 AM Ole V. Villumsen > wrote: > >> Just like in a piano staff we can have centred dynamics between the two >> staves, can Lilypond also centre the number of bars a multi-measure rest >> lasts? > > This is how I would do it: > > %%%\version "2.24.3" > > musicOne = { > \clef bass > \key f \major > \time 3/8 > \partial 8 > \omit MultiMeasureRestNumber > r8 | R4.*7 | > } > > musicTwo = { > \clef bass > \key f \major > \time 3/8 > \partial 8 > r8 | \offset MultiMeasureRestNumber.Y-offset 1 R4.*7 | > } > > \new PianoStaff << > \new Staff \compressMMRests \musicOne > \new Staff \compressMMRests \musicTwo >>> > %%% > > The key points are omitting the multi measure rest number in the right hand > and moving the number up in the left. > > -- > Knute Snortum
Re: Centered number of bars of multi-measure rest in piano staff?
On Wed, May 22, 2024 at 10:43 AM Ole V. Villumsen < ole.villum...@protonmail.ch> wrote: > Just like in a piano staff we can have centred dynamics between the two > staves, can Lilypond also centre the number of bars a multi-measure rest > lasts? > This is how I would do it: %%% \version "2.24.3" musicOne = { \clef bass \key f \major \time 3/8 \partial 8 \omit MultiMeasureRestNumber r8 | R4.*7 | } musicTwo = { \clef bass \key f \major \time 3/8 \partial 8 r8 | \offset MultiMeasureRestNumber.Y-offset 1 R4.*7 | } \new PianoStaff << \new Staff \compressMMRests \musicOne \new Staff \compressMMRests \musicTwo >> %%% The key points are omitting the multi measure rest number in the right hand and moving the number up in the left. -- Knute Snortum