Hello Klaus, as the expression is quoted it is not evaluated. Rather use quasiquoting to allow evaluation of parts of the expression:
`(baseline-skip . ,(* 0.5 4.0))
(important to have ` instead of ')
Cheers,
Valentin
Am Montag, 8. Juli 2024, 22:39:10 MESZ schrieb K. Blum:
> Dear LilyPonders,
>
> in an \override statement, I want to use the result of a mathematical
> computation instead of a simple value:
>
> % ------------------
> \version "2.24.3"
> \markup {
> % \override #'(baseline-skip . 2) % works
> \override #'(baseline-skip . (* 0.5 4.0)) % does not work
> \column { 1 2 3 }
> }
> % ------------------
>
> This causes an error:
> Fehler: Guile signaled an error for the expression beginning here
> #
> (let ((book-handler (if (defined? 'default-toplevel-book-handler)
> In procedure ly:stencil-stack: Wrong type argument in position 6 (expecting
> number): (* 0.5 4.0)
>
> Is this really impossible or am I missing something?
>
> Cheers,
> Klaus
signature.asc
Description: This is a digitally signed message part.
