Eyeglasses as markup: Difference between revisions
Import snippet from LSR |
Postscript version now removed |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
The <code>\eyeglasses</code> markup command displays eyeglasses, strongly indicating that one should look at a conductor. This snippet defines an <code>\altEyeglasses</code> command with a different style. | |||
Credit: Pierre Perol-Schneider on March 2015 | |||
<lilypond version="2.24.0" | <lilypond version="2.24.0"> | ||
altEyeglassesMarkup = | |||
\markup | |||
\override #'(line-cap-style . butt) | |||
\path #0.15 | |||
#'((moveto -3.57 1.80) | |||
\ | |||
# | |||
'((moveto -3.57 1.80) | |||
(curveto -3.65 1.90 -3.55 2.22 -3.33 2.22) | (curveto -3.65 1.90 -3.55 2.22 -3.33 2.22) | ||
(curveto -3.17 2.22 -3.15 2.15 -3.10 2.10) | (curveto -3.17 2.22 -3.15 2.15 -3.10 2.10) | ||
| Line 32: | Line 28: | ||
(moveto 0.12 1.68) | (moveto 0.12 1.68) | ||
(lineto -1.10 2.69) | (lineto -1.10 2.69) | ||
(curveto -1.50 3.05 -1.80 2.75 -1.71 2.45 | (curveto -1.50 3.05 -1.80 2.75 -1.71 2.45)) | ||
%% | % Turn it into an actual markup command rather than | ||
% variable set to a markup object. | |||
#(define-markup-command (altEyeglasses layout props) () | |||
(interpret-markup layout props altEyeglassesMarkup)) | |||
\markup | \markup "Standard eyeglasses" | ||
\relative c'' { | \relative c'' { | ||
c2^\markup\eyeglasses | c2^\markup\eyeglasses | ||
| Line 54: | Line 41: | ||
} | } | ||
\markup | \markup "Alternative eyeglasses" | ||
\relative c'' { | \relative c'' { | ||
c2^\markup\ | c2^\markup\altEyeglasses | ||
a2_\markup\ | a2_\markup\altEyeglasses | ||
} | } | ||
</lilypond> | </lilypond> | ||