Hi,
This tests tuplet bracket thickness (and overrides color):
%%% BEGIN (works) %%%
{
\once \override TupletBracket.color = #(lambda (grob)
(if (= 3 (ly:grob-property grob 'thickness)) red))
\tweak thickness 3
\times 2/3 { c'2 c'2 c'2 }
}
%%% END %%%
But how to test tuplet bracket color?
%%% BEGIN %%%
% Fails with wrong type argument in position 1: (1.0 0.0 0.0):
{
\once \override TupletBracket.thickness = #(lambda (grob)
(if (= red (ly:grob-property grob 'color)) 3))
\tweak color #red
\times 2/3 { c'2 c'2 c'2 }
}
% Fails with Wrong type argument in position 1: red:
{
\once \override TupletBracket.thickness = #(lambda (grob)
(if (= red (ly:grob-property grob 'color)) 3))
\tweak color #red
\times 2/3 { c'2 c'2 c'2 }
}
%%% END %%%
Thanks for any ideas,
Trevor.
--
Trevor Bača
www.trevorbaca.com
soundcloud.com/trevorbaca