lilypond-user
[Top][All Lists]
Advanced

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

problem with overriding nested properties


From: David Nalesnik
Subject: problem with overriding nested properties
Date: Mon, 19 Dec 2011 16:14:27 -0600

Hi all,

Working with overrides of nested properties, I run into an interesting problem.

Both overrides of 'color produce the same result, but the override of 'bound-details set to the lambda _expression_ does nothing.  I've noticed this with other attempted overrides of nested properties such as 'bound-details 'left 'padding.

(My example is pretty silly, but it's as simple as I can make it.)

\version "2.15.16"

\relative c'' {
  \override TextSpanner #'bound-details #'left #'text = #(lambda (grob) "hi") % doesn't work
  %\override TextSpanner #'bound-details #'left #'text = #"hi"
  %\override TextSpanner #'color = #red
  \override TextSpanner #'color = #(lambda (grob) red)  %works
  c\startTextSpan d e f\stopTextSpan
}


Is there a detail of syntax I'm getting wrong here, or is this a limitation of \override?

-David
 

reply via email to

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