|
From: | Aaron Hill |
Subject: | Re: Snippet 960 fails with Ly 2.25 |
Date: | Mon, 01 Apr 2024 16:11:42 -0700 |
On 2024-04-01 3:20 pm, K. Blum via bug-lilypond wrote:
Hello, LSR snippet 960 works alright with LilyPond 2.24.3 and earlier. Ly 2.25.1 (and later) aborts with an error message, see below. In the docs I haven't found any changes to the functions in use. Also tried convert-ly, but it did not change anything from the code. Am I missing something or is this a bug? Snippet 960: https://lsr.di.unimi.it/LSR/Item?id=960
It's an obsolete snippet that will likely need to be removed when LSR moves to 2.26 as the stable version. This type of functionality is directly supported in LilyPond via staff highlights [1].
[1]: https://lilypond.org/doc/v2.25/Documentation/notation/staff-highlights
The source of the error is how colors need to be handled. Add an explicit call to normalize-color:
;;;; (ly:make-stencil (list 'color (normalize-color color) ;;;; -- Aaron Hill
[Prev in Thread] | Current Thread | [Next in Thread] |