On Mon, Nov 20, 2023 at 6:34 AM Luca Fascione <l.fasci...@gmail.com> wrote:

> Did this change between 22 and 24?
> Is there somewhere I can go to see the implementation for the LSR that
> used 2.22?
>
> L
>
> On Mon, 20 Nov 2023, 15:07 Knute Snortum, <ksnor...@gmail.com> wrote:
>
>> On Mon, Nov 20, 2023 at 4:35 AM Luca Fascione <l.fasci...@gmail.com>
>> wrote:
>>
>>> Also,
>>> it doesn't seem to actually work on 2.22 (see below)
>>>
>>> How does this even compile on the LSR?
>>>
>>
>> The LSR uses LilyPond 2.24.2, which compiles the source without error.
>>
>
I searched for the original post for the LSR and upgraded it only to 2.22.
If you're not going to upgrade LilyPond to 2.24.3, then try this:

\version "2.22.0"

startParenthesis = {
\once \override ParenthesesItem.stencils = #(lambda (grob)
(let ((par-list (parentheses-item::calc-parenthesis-stencils grob))
(right-par (grob-interpret-markup grob (markup #:null))))
(list (car par-list)right-par )))
}

endParenthesis = {
\once \override ParenthesesItem.stencils = #(lambda (grob)
(let ((par-list (parentheses-item::calc-parenthesis-stencils grob))
(left-par (grob-interpret-markup grob (markup #:null))))
(list left-par (cadr par-list))))
}

{
  \new ChordNames {
    \chordmode {
      \startParenthesis \parenthesize a:m7 \endParenthesis \parenthesize
d:7
    }
  }
}

--
Knute Snortum

Reply via email to