> Am 19.01.2022 um 13:09 schrieb Jean Abou Samra <j...@abou-samra.fr>:
>
> Le 19/01/2022 à 09:46, Thomas Scharkowski a écrit :
>> Hallo,
>>
>> I’d like to replace the arpeggioBracket by a curly bracket / brace.
>> Thank your for your help!
>
>
> Here's a stencil callback reading the vertical start
> and end positions of the arpeggio and printing a bracket
> accordingly:
>
> \version "2.22.1"
>
> arpeggioBrace =
> \tweak stencil
> #(lambda (grob)
> (let* ((positions (ly:grob-property grob 'positions))
> (layout (ly:grob-layout grob))
> (scale (ly:output-def-lookup layout 'output-scale))
> (factor (/ scale (ly:pt 1)))
> (len (* factor (+ 0.5 (interval-length positions))))
> (brace-markup (make-left-brace-markup len))
> (brace-stencil (grob-interpret-markup grob brace-markup)))
> (ly:stencil-translate-axis brace-stencil
> (interval-center positions)
> Y)))
> \arpeggio
>
> \relative {
> \clef bass
> <e g b g'>\arpeggioBrace
> }
>
>
> Best,
> Jean
>
Thank you Jean,
This is very nice!
How can I use this for connected arpeggios through voices?
Thanks again,
Thomas