lilypond-user
[Top][All Lists]
Advanced

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

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


From: Steven Weber
Subject: Can you determine why a grob is being typeset in scheme?
Date: Mon, 20 Apr 2015 13:40:58 -0700

Since I always highlight clef changes in my music and I have access to a color printer, I thought it’d be more efficient to let Lilypond do the highlighting for me.  I wrote a handy function that places a filled-box behind the clef grob, and it works great, as long as I add it manually for every clef change.   What I really want is to add this to the Staff context so I never have to think about it again.  So I created an override function for the Staff.Clef.stencil which does the same thing as my manual function and again, it does highlight the clefs.  Unfortunately, it highlights every single clef (i.e., all the clefs at the beginning of the staves, not just the clef changes), which is overkill and defeats the purpose of highlighting things I need to pay attention to.

 

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)”?

 

Thanks!

 

--Steven


reply via email to

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