Le 19/01/2022 à 14:47, Thomas Scharkowski a écrit :
This does not work for me (I did change of course PianoStaff to Staff).
To get the „normal“ brackets I use:
\override Staff.Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket
This works for me:
\version "2.22.1"
spanArpeggioBrace =
\once \override Staff.Arpeggio.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)))
\new Staff \with {
\consists Span_arpeggio_engraver
connectArpeggios = ##t
% Looks better a bit closer to the notes?
\override Arpeggio.padding = -0.2
% A bit of padding to the left?
\override Arpeggio.extra-spacing-width = #'(-1 . 0)
}
<<
\new Voice \relative {
\voiceOne
\override Staff.Arpeggio.stencil = #ly:arpeggio::brew-chord-bracket
g'\arpeggio
\spanArpeggioBrace
g\arpeggio
g\arpeggio
}
\new Voice \relative {
\clef bass
\voiceTwo
<e g b>\arpeggio
q\arpeggio
q\arpeggio
}
>>
If you can't get it to work in your score,
please paste a complete example (preferably
reduced, http://lilypond.org/tiny-examples.html)
-- it is very hard to guess what is going wrong
without seeing any code.
Thanks,
Jean