[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automatic bar number following multimeasure rest
From: |
address@hidden |
Subject: |
Re: automatic bar number following multimeasure rest |
Date: |
Sun, 16 Aug 2015 15:26:43 +0000 (GMT) |
Yes! Nice!
Thank you!
-David
----- Original Message -----
> From: "Thomas Morley" <address@hidden>
> To: address@hidden
> Cc: "Lillypond Users Mailing List" <address@hidden>
> Sent: Sunday, August 16, 2015 1:47:30 PM
> Subject: Re: automatic bar number following multimeasure rest
>
> 2015-08-16 13:27 GMT+02:00 address@hidden <address@hidden>:
> >
> > Is there a way to automatically have a measure number printed after a
> > multi-measure rest? I mean, aside from/in addition to the default
> > behavior of placing them at the beginning of a system. I did try
> > searching for a solution but did not find anything.
>
> How about:
>
> \version "2.18.2"
>
> tst =
> #(define-music-function (parser location music)(ly:music?)
> (music-map
> (lambda (m)
> (if (equal? (ly:music-property m 'name) 'MultiMeasureRestMusic)
> #{
> $m
> \once \override Score.BarNumber.break-visibility = ##(#f #t #t)
> \once \override Score.BarNumber.self-alignment-X = #CENTER
> #}
> m))
> music))
>
> \tst
> {
> \compressFullBarRests
> c''1
> R1*20
> c''
> \break
> c''
> }
>
>
> Cheers,
> Harm
>