lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bis


From: David Nalesnik
Subject: Re: bis
Date: Tue, 26 Jul 2016 10:53:30 -0500

On Mon, Jul 25, 2016 at 7:56 AM, David Nalesnik
<address@hidden> wrote:

> 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 }
> }
>

An improvement is attached.

It's written for more current development versions (> 2.19.26), but
there are two line switches you can do if you're running an older
version of LilyPond.  (See code comments in
measure-attached-spanner::print.)

The advantage of using a later version is that you can vary the line
style of the bracket.

Best,
David

P. S. : Technical note: the break-aligned stuff in the print function
is not necessary at the moment, but is included because the goal is to
allow the bracket edges to have variable alignment with prefatory
material.  Right now, we just align to the end of the prefatory
material on the left and the beginning of any end material on the
right.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Attachment: measure-spanner-improved.ly
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]