On Wed, 17 Jan 2024 at 15:42, Martin Brown <mar...@martinbrown.id.au> wrote:
> To answer my own question, I've fudged this with: > \omit MultiMeasureRestNumber at the start of the bass line > \override MultiMeasureRestNumber.Y-offset = -5 at the start of the > treble line > but that seems a bit fragile. Eg. if the staves need to be separated more. > Any other solutions? > > Cheers, > Martin > > On Tue, 16 Jan 2024 at 14:05, Martin Brown <mar...@martinbrown.id.au> > wrote: > >> Where two-stave scores (eg. piano) have multiple bars rest in common >> between the treble and bass parts, the number of bars rest should be placed >> once, in between the two staves, not separately on each stave. How can I >> achieve this in Lilypond? By default, it seems to treat each stave's rest >> count separately, placing the number above the multi-bar rest symbol on >> each stave. >> >> Thanks, >> Martin >> > I’ve managed to move the multimeasure rest numbers into the PianoStaff context with this code. Next (too hard for me) would be: - place the transparent MMrest in the center of the whole PianoStaff - place the MMrest number on top of this MMrest \version "2.24.2" \score { \new PianoStaff << \new Staff \compressMMRests { c''1 R1*5 g1 f1 } \new Staff \compressMMRests { \clef bass c1 R1*5 c'1 d'1 } >> \layout { \context { \Voice \override MultiMeasureRestNumber.transparent = ##t \override MultiMeasureRest.transparent = ##f \override MultiMeasureRest.direction = #CENTER } \context { \PianoStaff \consists Multi_measure_rest_engraver \override MultiMeasureRest.transparent = ##t % comment this out to place MM rests \override MultiMeasureRestNumber.parent-alignment-Y = #CENTER % this is not the solution } } } %% Vaughan