lilypond-user
[Top][All Lists]
Advanced

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

Re: Can you determine why a grob is being typeset in scheme?


From: David Nalesnik
Subject: Re: Can you determine why a grob is being typeset in scheme?
Date: Mon, 20 Apr 2015 17:13:41 -0500



On Mon, Apr 20, 2015 at 4:55 PM, David Nalesnik <address@hidden> wrote:



On Mon, Apr 20, 2015 at 3:40 PM, Steven Weber <address@hidden> wrote:
 

Is there a way in scheme to say “is this grob being typeset because of an explicit command (\clef bass), or implicitly (because of a line break)”?

 



To highlight based on an "explicit command" you will need to analyze and alter the music _expression_.


Learn something new every day...

 #(define highlight
   (lambda (grob)
       (if (boolean? (ly:grob-property grob 'non-default))
           red
           black))))

--DN

reply via email to

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