[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vertical half-brackets
From: |
Valentin Petzel |
Subject: |
Re: vertical half-brackets |
Date: |
Fri, 17 Jun 2022 22:03:53 +0200 |
Hello Werner,
how about something simple but functional like this:
chbracket =
#(define-music-function (offset height width) (number? number? number?)
(let* ((x0 -0.7)
(x1 (+ x0 width))
(y0 offset)
(y1 (+ y0 height)))
#{
\tweak outside-staff-priority ##f
-\markup {
\with-dimensions-from \null
\path #0.14
#`((moveto ,x0 ,y1) (lineto ,x0 ,y0) (lineto ,x1 ,y0))
}
#}))
{ c'\chbracket #-1.4 #4 #1.2 c'\chbracket #1 #-2.5 #1.2 }
Cheers,
Valentin
Am Mittwoch, 1. Juni 2022, 11:20:44 CEST schrieb Werner LEMBERG:
> >> * Has someone coded this already? I couldn't find code in the LSR.
> >
> > I don't know if this is still the most ideal way, but it works.
> > [...]
>
> Thanks a lot for all the replies! I'll analyze them and cook
> something up for my needs.
>
>
> Werner
signature.asc
Description: This is a digitally signed message part.