lilypond-user
[Top][All Lists]
Advanced

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

Passage to 2.23 still a problem with scheme


From: Vincent Gay
Subject: Passage to 2.23 still a problem with scheme
Date: Thu, 21 Jul 2022 22:26:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

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

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

-- 
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/

reply via email to

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