lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom NoteNames doesn't work in 2.22


From: David Kastrup
Subject: Re: Custom NoteNames doesn't work in 2.22
Date: Fri, 11 Nov 2022 15:26:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Abou Samra <jean@abou-samra.fr> writes:

> Le 11/11/2022 à 14:28, David Kastrup a écrit :
>>>    \override NoteName #'stencil = #ChimeNoteNames
>> This is the problematic line, and the error message should have
>> indicated as much.  This should be NoteName.stencil but you really
>> really really should figure out how to run convert-ly in the correct
>> manner on your files, or you'll be back asking for help on the list for
>> every single incompatible syntax change in future.
>
>
>
> Viktor, I suspect what is happening is that you first upgraded
> an old file to 2.20 without convert-ly, which didn't change
> this syntax, then upgraded from 2.20 to 2.22, which didn't
> change it either because the conversion rule is done when crossing
> the version in which the change was done, namely version 2.17.6.
>
> That said, while true that this syntax is deprecated, it still
> works and replacing NoteName #'stencil with NoteName.stencil
> does not make a difference in the output.
>
> The problem appears to be that the NoteName text in 2.22 is
> not a simple string but a combination of \concat, \line and
> \simple that ends up printing the same thing. One can fix
> the snippet by first extracting the string from that markup
> before the alist lookup, using markup->string:

[...]

Well, one reason to avoid deprecated syntax and use convert-ly for
updates is that it avoids masking the real problem when people like
myself stop looking further after seeing the presumed first red flag.

Sorry for the misdiagnosis.

-- 
David Kastrup



reply via email to

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