On Mon, Apr 20, 2015 at 4:55 PM, David Nalesnik <david.nales...@gmail.com>
wrote:

>
>
>
>> On Mon, Apr 20, 2015 at 3:40 PM, Steven Weber <pant...@hotmail.com>
>> 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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to