lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom glyph articulation [WAS: Creating new articulation (adding to


From: Pierre Perol-Schneider
Subject: Re: Custom glyph articulation [WAS: Creating new articulation (adding to an internal alist) ]
Date: Mon, 6 Apr 2015 21:17:51 +0200

Hi Abraham,

2015-04-06 19:34 GMT+02:00 Abraham Lee <address@hidden>:
However, in version 2.18.2, I discovered that I had to change the markup definition of essai slightly:

Good point, thanks !!
 

%<-------------- SNIP -------------

\version "2.18.2"

%% Nothing realistic here, 'essai' is just to show something:
essai = 
\markup
\center-align % <--- not needed in latest unstable
\scale #'(-2 . -2)
\override #'(filled . #t) 
\path #0.01 
#'((moveto    0.58   0.91)
   (curveto   0.58   0.83   0.63   0.80   0.70   0.80)
   (curveto   0.90   0.80   0.87   1.15   1.11   1.28)
   (curveto   0.90   1.29   0.58   1.11   0.58   0.91))


%% New articulation: 
#(append! default-script-alist
   (list
    `("mon-articulation"
       . (
           (text . ,#{ \markup \essai #})
           (stencil . ,ly:text-interface::print)
           ; any other properties
           (toward-stem-shift-in-column . 0.0)
           (padding . 0.30)
           (avoid-slur . around)
           ;(script-priority . 100)
           (direction . ,UP)))))

Just perfect !!! Thank you very much.
I've simplified it a little, but again, it's exactly what I was looking for this morning:

#(append! default-script-alist
   (list
    `("mon-articulation"
       . (
           (stencil . ,ly:text-interface::print)
           (text . ,essai)
           ; any other properties
           (toward-stem-shift-in-column . 0.0)
           (padding . 0.20)
           (avoid-slur . around)
           (direction . ,UP)))))


Cheers,
Pierre



reply via email to

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