lilypond-user
[Top][All Lists]
Advanced

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

Re: left pointing note heads


From: Andrew Bernard
Subject: Re: left pointing note heads
Date: Thu, 1 Oct 2015 14:31:31 +1000

Hi Johan,

How about this as a base to start from?

Obviously you can play around with the ellipticity and shape and fill of the 
noteheads to your hearts content. This gives the different directions you are 
wanting.

Andrew

— snip
\version "2.19.28"

#(define right-pointing-notehead
   (lambda (grob)
     (let* ((duration (ly:grob-property grob 'duration-log))
            (filled? (if (> duration 1) #t #f))
            (stil-1 (make-partial-ellipse-stencil 0.65 0.26 10 10 0.15 #t 
filled?))
            (stil-2 (ly:stencil-rotate stil-1 45 0 0))
            )
       stil-2)))

#(define left-pointing-notehead
   (lambda (grob)
     (let* ((duration (ly:grob-property grob 'duration-log))
            (filled? (if (> duration 1) #t #f))
            (stil-1 (make-partial-ellipse-stencil 0.65 0.26 10 10 0.15 #t 
filled?))
            (stil-2 (ly:stencil-rotate stil-1 -45 0 0))
            )
       stil-2)))

lh = {
  \override NoteHead.stencil = #right-pointing-notehead
  \override NoteHead.stem-attachment = #'(0.8 . 0.5)
}

rh = {
  \override NoteHead.stencil = #left-pointing-notehead
  \override NoteHead.stem-attachment = #'(-0.5 . 0.5)
}

\drums {
  \stemDown
  \lh bd4 bd \rh bd bd \lh bd \rh bd \lh bd \rh bd
}

— snip



> On 30 Sep 2015, at 07:20, johan buelens <address@hidden> wrote:
> 
> <taiko.jpg>




reply via email to

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