Hi Malte,

Am 08.08.2017 um 10:30 schrieb Malte Meyn:



Am 08.08.2017 um 10:23 schrieb Marc Hohl:

I wanted to write a little callback to remove all occurrencies
of "0" fingerings.

This doesn’t empty the stencil but removes the Fingering grobs completely (by suicide):

thanks for this solution!

In my real-life example, I got

lilypond: ../flower/include/drul-array.hh:35: T& Drul_array<T>::at(Direction) [with T = scm_unused_struct*]: Zusicherung >>d == 1 || d == -1<< nicht erf?llt.
Aborted (core dumped)

but changing before-line-breaking to after-line-breaking did the trick.

I do not fully understand why, but it works.

Thanks,

Marc

     \override Fingering.before-line-breaking =
     #(lambda (grob)
        (if (equal? (ly:grob-property grob 'text) "0")
            (ly:grob-suicide! grob)))

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


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

Reply via email to