[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: square brackets around rehearsal marks 2.21.81
From: |
Aaron Hill |
Subject: |
Re: square brackets around rehearsal marks 2.21.81 |
Date: |
Sat, 05 Dec 2020 20:43:41 -0800 |
User-agent: |
Roundcube Webmail/1.4.9 |
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:
%%%%
\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
Description: PNG image