lilypond-user
[Top][All Lists]
Advanced

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

Re: NoteHeads vs duration


From: Malte Meyn
Subject: Re: NoteHeads vs duration
Date: Sat, 20 Aug 2016 12:41:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0



Am 20.08.2016 um 12:25 schrieb Pierre Perol-Schneider:
                (case duration
                  ((0) (grob-interpret-markup grob (markup "0")))
                  ((1) (grob-interpret-markup grob (markup "1")))
                  ((2) (grob-interpret-markup grob (markup "2")))
                  ((3) (grob-interpret-markup grob (markup "3")))
                  ((4) (grob-interpret-markup grob (markup "4")))
                  ((5) (grob-interpret-markup grob (markup "5")))
                  ((6) (grob-interpret-markup grob (markup "6")))
                  ((7) (grob-interpret-markup grob (markup "7")))
                  (else (ly:note-head::print grob)))))

Why not simply use number->string here? Do you really want to print actual note heads for breve (and longer) and 256th (and shorter) notes?

    \override NoteHead.stencil =
    #(lambda (grob)
       (grob-interpret-markup grob
         (markup
          (number->string
           (ly:duration-log
            (ly:event-property (event-cause grob) 'duration))))))



reply via email to

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