Hello Harm, Thanks a lot, that solves a problem I had too!
JM > Le 16 août 2015 à 15:47, Thomas Morley <thomasmorle...@gmail.com> a écrit : > > 2015-08-16 13:27 GMT+02:00 bobr...@centrum.is <bobr...@centrum.is>: >> >> 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 > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user