lilypond-user
[Top][All Lists]
Advanced

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

Re: Remove all occurrencies of "0" fingerings


From: Marc Hohl
Subject: Re: Remove all occurrencies of "0" fingerings
Date: Tue, 8 Aug 2017 17:20:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Am 08.08.2017 um 12:47 schrieb David Kastrup:
Marc Hohl <address@hidden> writes:

I wanted to write a little callback to remove all occurrencies
of "0" fingerings. This is what I got so far:


\version "2.19.63"

music = {
   c'4-3 d'-0 e'-2 f'-3 | g'1-0
}

\score {
   \new Staff \with {
     \override Fingering.stencil =
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       #(lambda (grob)
[...]
                              (ly:grob-property grob 'stencil))))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Compiling this nearly MWE, I get:

Warning: Fingering has empty extent and non-empty stencil.
Warning: Fingering has empty extent and non-empty stencil.

And *no* fingering at all is shown in the resulting score.
What am I doing wrong?

Recursion: see Recursion.

Ah, yes!

I think I intermingled the idea to use Fingering.after-line-breaking (where stencil is already defined) and Fingering.stencil (to remove the stencil before any layout decisions are completed).

Thanks for clarification!

Marc



reply via email to

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