lilypond-user
[Top][All Lists]
Advanced

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

Re: problem with overriding nested properties


From: David Nalesnik
Subject: Re: problem with overriding nested properties
Date: Mon, 19 Dec 2011 16:44:41 -0600

Hi Mike,

On Mon, Dec 19, 2011 at 4:20 PM, address@hidden <address@hidden> wrote:

It's a limitation of override.  You'd have to override bound-details with a function and then build the entire a-list.  Unfortunately, nested-properties do not evaluate functions for overrides.


Thanks!  Works perfectly.

For the record:

\relative c'' {
  \override TextSpanner #'bound-details = #(lambda (grob)
    `((left (Y . 0) (padding . 0.25) (attach-dir . -1) (text . ,(markup "hi"))) 
      (left-broken (end-on-note . #t)) (right (Y . 0) (padding . 0.25))))
  c\startTextSpan d e f\stopTextSpan
}

-David

reply via email to

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