Eyeglasses as markup: Difference between revisions
Appearance
Postscript version now removed |
m New category |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
Credit: Pierre Perol-Schneider on March 2015 | Credit: Pierre Perol-Schneider on March 2015 | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
altEyeglassesMarkup = | altEyeglassesMarkup = | ||
\markup | \markup | ||
| Line 51: | Line 51: | ||
[[Category:Symbols and glyphs]] | [[Category:Symbols and glyphs]] | ||
[[Category:Really cool]] | [[Category:Really cool]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:22, 21 November 2025
The \eyeglasses markup command displays eyeglasses, strongly indicating that one should look at a conductor. This snippet defines an \altEyeglasses command with a different style.
Credit: Pierre Perol-Schneider on March 2015
\version "2.24"
altEyeglassesMarkup =
\markup
\override #'(line-cap-style . butt)
\path #0.15
#'((moveto -3.57 1.80)
(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)
(lineto -2.02 0.94)
(moveto -2.06 0.65)
(curveto -2.06 1.00 -1.75 1.28 -1.45 1.28)
(curveto -1.10 1.28 -1.07 1.05 -1.07 0.90)
(curveto -1.07 0.62 -1.30 0.27 -1.70 0.27)
(curveto -1.85 0.25 -2.06 0.40 -2.06 0.65)
(closepath)
(moveto -1.14 1.20)
(curveto -1.00 1.44 -0.72 1.52 -0.57 1.35)
(moveto -0.61 1.05)
(curveto -0.61 1.42 -0.30 1.68 0.00 1.68)
(curveto 0.22 1.68 0.37 1.52 0.37 1.28)
(curveto 0.37 0.96 0.06 0.65 -0.25 0.64)
(curveto -0.30 0.64 -0.61 0.65 -0.61 1.05)
(closepath)
(moveto 0.12 1.68)
(lineto -1.10 2.69)
(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 "Standard eyeglasses"
\relative c'' {
c2^\markup\eyeglasses
a2_\markup\eyeglasses
}
\markup "Alternative eyeglasses"
\relative c'' {
c2^\markup\altEyeglasses
a2_\markup\altEyeglasses
}