lilypond-user
[Top][All Lists]
Advanced

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

Re: NoteHeads vs duration


From: Pierre Perol-Schneider
Subject: Re: NoteHeads vs duration
Date: Sat, 20 Aug 2016 13:01:13 +0200

Hi Malte.
Actually the markups there were just to put something, not real issues.

Thanks anyway!
Cheers,
Pierre

2016-08-20 12:41 GMT+02:00 Malte Meyn <address@hidden>:


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

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


reply via email to

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