This works perfectly, thanks a lot! Erik
> 25 juli 2016 kl. 14:56 skrev David Nalesnik <david.nales...@gmail.com>: > > On Mon, Jul 25, 2016 at 6:54 AM, <e...@ompom.se> wrote: >> >> Thanks a lot, I'll check it out! >> >> Erik >> >> >> ----- Ursprungligt meddelande ----- >> Från: >> "Andrew Bernard" <andrew.bern...@gmail.com> >> >> Till: >> "lilypond-user Mailinglist" <lilypond-user@gnu.org> >> Kopia: >> >> Skickat: >> Mon, 25 Jul 2016 19:23:40 +1000 >> Ämne: >> Re: bis >> >> >> >> Hi Erik, >> >> This is a use for a text spanner with centred text that I had been >> asking about on the list for some time, Eventually I wrote a function >> to do it with the kind help of Thomas Morley also. Very useful - I >> always said so! >> > > This is a good solution, but one drawback is the left and right bounds > of the text spanner aren't set to the column that holds the bar lines, > rather to the NoteColumn objects. One consequence is that you > wouldn't get automatic alignment with bar lines, if that's what you > want. > > Another solution is available on the LSR: > http://lsr.di.unimi.it/LSR/Snippet?id=954. > > Add this function: > > textedMeasureBracket = > #(define-music-function > (parser location str mus) > (markup? ly:music?) > #{ > \override Staff.MeasureCounter.stencil = > #(lambda (grob) (test-stencil grob str)) > \startMeasureCount > #mus > \stopMeasureCount > #} > ) > > Use it like this: > > twice = \markup { \italic "bis" } > > { > \textedMeasureBracket \twice { g'1 g'1 } > } > > > HTH, > David _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user