lilypond-user
[Top][All Lists]
Advanced

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

Re: Defining custom noteHead scaling problem


From: Neil Puttock
Subject: Re: Defining custom noteHead scaling problem
Date: Thu, 12 Nov 2009 20:29:24 +0000

2009/11/12 Jiri Zurek (Prague) <address@hidden>:
>
> Cheating from
> http://old.nabble.com/defining-custom-note-heads-td17430564.html#a17626150
> the older post   I was able to define my own special noteHead, combining
> three glyphs together, calling it a tripleNote. It works perfectly in the
> default score size. However, when I resize the score to smaller one, the
> tripleNote is not scaled well - the third noteHead appears too far from the
> other noteHeads. I suspect this is because the offset values are hard coded
> into the tripleNote definition. Is there a way how to code these values
> proportionally to the score size instead?

If you use \concat, there's no need to mess around with \hspace:

tripleNote = {
  \once \override NoteHead  #'stencil =
    #(lambda (grob)
       (grob-interpret-markup grob
        (markup  #:concat (#:musicglyph "noteheads.s2"
                           #:musicglyph "noteheads.s2"
                           #:musicglyph "noteheads.s2"))))
}

Regards,
Neil




reply via email to

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