lilypond-user
[Top][All Lists]
Advanced

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

Re: square brackets around rehearsal marks 2.21.81


From: Paul Scott
Subject: Re: square brackets around rehearsal marks 2.21.81
Date: Sun, 6 Dec 2020 01:37:22 -0700


> On Dec 5, 2020, at 9:43 PM, Aaron Hill <lilypond@hillvisions.com> wrote:
> 
> On 2020-12-05 10:30 am, Paul Scott wrote:
>> Is there a way to put square brackets around a rehearsal mark (bar
>> number if relevant)?
> 
> bracketify-stencil should do what you need.  Here's a wrapper for it:

Works perfectly!  Thank you,

Paul

> 
> 
> %%%%
> \version "2.20.0"
> 
> bracketify =
> #(define-music-function
>  (grob-path axis thick protrusion padding)
>  (key-list? number? number? number? number?)
>  #{ \override $grob-path . stencil =
>       #(grob-transformer 'stencil
>         (lambda (grob orig)
>         (bracketify-stencil orig
>          axis thick protrusion padding))) #})
> 
> {
>  \bracketify Score.RehearsalMark #Y 0.1 0.3 0.5
>  \mark \default b'4 4 2 4 2. 1
>  \temporary \bracketify NoteHead #X 0.2 0.5 0.3
>  \mark \default b'4 4 2 4 2. 1
>  \revert NoteHead.stencil
>  \mark \default b'4 4 2 4 2. 1
> }
> %%%%
> 
> 
> -- Aaron Hill<bracketify.cropped.png>




reply via email to

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