Helge Kruse wrote: > I want to add markups... circled T and the > half-moon... How do I add such special markups?
See the 2 attached files. Learn about the techniques here: http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Text-markup-commands http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Markup-programmer-interface Regarding the draw_bezier_sandwich ps-routine, I don't think the order of "thickness controls" is clearly listed anywhere (I'll post a note to the developers list). But if you're postscript-savvy, here's how it works... Points 0-3 and points 4-7 are control points for 2 separate bezier curves, listed in the following order: x5 y5 x6 y6 x7 y7 x4 y4 x1 y1 x2 y2 x3 y3 x0 y0 linewidth draw_bezier_sandwich Distances are measured in staff-space units. If the order of coordinates is confusing, it may be helpful to read the list from the bottom up. hope this helps. - Mark
\version "2.13.0"
#(define-markup-command (T-circle layout props) ()
(interpret-markup layout props (markup #:circle "T")))
#(define-markup-command (fingernail layout props) ()
(interpret-markup layout props
(markup #:stencil
(ly:make-stencil
(list 'embedded-ps
(string-append "1.6 1.5 0.4 1.5 0 0 2 0\n"
"0.4 0.75 1.6 0.75 2 0 0 0\n"
"0.15 draw_bezier_sandwich\n"))
'(0 . 2)
'(0 . 1.75)))))
\relative {
\key f \major
\time 2/4
\override NoteHead #'style = #'cross
\override TextSpanner #'(bound-details left text) =
\markup { \upright "Pdlt " }
% move TextSpanner above markups:
\override TextSpanner #'outside-staff-priority = #451
f16^\markup { \right-align \T-circle
\fingernail
\small "(ou articulations)" }
\startTextSpan f f f f8 f |
f16 f f f f8 f |
f16 f f f f4 \stopTextSpan |
\revert NoteHead #'style
}<<attachment: special-markups.png>>
_______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
