> On Dec 5, 2020, at 9:43 PM, Aaron Hill <lilyp...@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