On Wed, Jul 19, 2023 at 3:41 PM Jean Abou Samra wrote:
> \tweak color #(if (equal? DOWN (ly:grob-property grob 'direction)) red
> blue)
>
> You just forgot to wrap the expression in (lambda (grob) ...) .
>
Yes, that's it:
%%% BEGIN %%%
\version "2.25.3"
\markup "Conditionally colors both
> \tweak color #(if (equal? DOWN (ly:grob-property grob 'direction)) red
> blue)
You just forgot to wrap the expression in `(lambda (grob) ...)` .
Best,
Jean
signature.asc
Description: This is a digitally signed message part
\tweak color #(if (equal? DOWN (ly:grob-property grob 'direction)) red
blue)
\times 2/3 { c'4 c' c' }
c'2
c'2
}
}
%%% END %%%
Is there a way to tweak grobs with callback output?
Trevor.
--
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca