Good evening to all
I frequently use opening and closing parenthesis to frame not only one
note or chord but several. For example :
or
The lsr snippet : https://lsr.di.unimi.it/LSR/Item?id=902
<https://lsr.di.unimi.it/LSR/Item?id=902>
here is a minimal example in 2.22.2
%%%%%%%%%%%%%%%
startParenthesis = {
\once \override ParenthesesItem.stencils = #(lambda (grob)
(let ((par-list
(parentheses-item::calc-parenthesis-stencils grob)))
(list (car par-list)
point-stencil )))
}
endParenthesis = {
\once \override ParenthesesItem.stencils = #(lambda (grob)
(let ((par-list
(parentheses-item::calc-parenthesis-stencils grob)))
(list point-stencil
(cadr par-list))))
}
{ c1 \startParenthesis \parenthesize c c \endParenthesis
\parenthesize }
%%%%%%%%%%%%%%%
but I know that the handling of parentheses had changed a lot with
2.23, and that parentheses-item does not exist anymore. In fact it
doesn't work anymore even after a convert-ly.
Lily's message:
/tmp/Parentheses.ly:7:19: error: bad grob property path
\once \override
ParenthesesItem.stencils = #(lambda (grob)
/tmp/Parentheses.ly:12:19: error: bad grob property path
\once \override
ParenthesesItem.stencils = #(lambda (grob)
/tmp/Parentheses.ly:17:76: error: syntax error, unexpected '}',
expecting \header
{ c1 \startParenthesis \parenthesize c c \endParenthesis \parenthesize
}
/tmp/Parentheses.ly:17:1: error: errors found, ignoring music expression
Does anyone know of another solution, or would they know how to change
this?
Thanks in advance