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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to