lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passage to 2.23 still a problem with scheme


From: Jean Abou Samra
Subject: Re: Passage to 2.23 still a problem with scheme
Date: Thu, 21 Jul 2022 22:48:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0



Le 21/07/2022 à 22:26, Vincent Gay a écrit :
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


Answered at
https://lists.gnu.org/archive/html/lilypond-user-fr/2022-07/msg00086.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]