2012/2/16 David Nalesnik <david.nales...@gmail.com>:
> Hi Tiresia,
>
> On Thu, Feb 16, 2012 at 11:38 AM, Tiresia GIUNO <tires...@googlemail.com>
> wrote:
>>
>> I replaced the note head with the glyphs 'noteheads.u2do' and/or
>> 'noteheads.d2do' but I always get a triangle with an angle pointing
>> upwards - let's say as in '^'
>>
>> Sure, I'm misunderstanding but I thought that '.u2do' and 'd2do' stays
>> for 'Up' and 'Down'
>
>
> I can't say what the difference is between the glyphs, but they do have the
> same orientation in the Feta notation charts.  You could get the
> downward-pointing triangle by rotating the shape-note glyph you're using:
>
>  dSlap = {
>        \once \override NoteHead #'stencil = #(lambda (grob)
>                (ly:stencil-rotate
>                  (grob-interpret-markup grob
>                    (markup #:musicglyph "noteheads.d2do"))
> 180 0 0))
>        \once \override Stem #'extra-offset = #'(0.6 . 0.0)
> }
>
> HTH,
> David
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Or perhaps:

\version "2.14.2"
\include "english.ly"

customSlap = {
       \override NoteHead #'stencil = #(lambda (grob)
           (let* ((stem (ly:grob-object grob 'stem))
                  (stem-dir (ly:grob-property stem 'direction))
                  (rot (if (= stem-dir 1) 180 0)))
           (grob-interpret-markup grob
                   (markup #:rotate rot #:musicglyph "noteheads.u2do"))))

       \override NoteHead #'stem-attachment = #'(0.0 . 0.0)
}

\layout {
       \context { \Voice
               \override Stem #'flag = #modern-straight-flag
       }
}

{ \customSlap e''8  a' }

Reduced to one commend. Also, note the use of \override NoteHead
#'stem-attachment = #'(0.0 . 0.0) instead of 'extra-offset

HTH,
  Harm

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

Reply via email to