Smiley: Difference between revisions
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
mNo edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
Put some funny icons in your score or in a markup. | Put some funny icons in your score or in a markup. Syntax is <code>\smiley <var>type</var> <var>size</var></code>, or <code>\smileyNoteHead <var>type</var></code>. (Contributed by Pierre-Perol Schneider.) | ||
< | |||
<lilypond version="2.24"> | |||
%%% Smiley defs to be saved as smiley.ily: | %%% Smiley defs to be saved as smiley.ily: | ||
lovePath = \markup { | lovePath = \markup { | ||
| Line 297: | Line 288: | ||
%\include "smiley.ily" | %\include "smiley.ily" | ||
\markup\concat { | |||
"I" \hspace #.3 | |||
\raise #1.2 \smiley #"<3" #3 \hspace #.3 | |||
"P" \hspace #-.6 | |||
\raise #0.07 \smiley #"A" #4 \hspace #.1 | |||
\smallCaps "ris" | |||
} | } | ||
| Line 320: | Line 309: | ||
\context { | \context { | ||
\Staff | \Staff | ||
instrumentName = \markup\smiley #"A" # | instrumentName = \markup\smiley #"A" #5 | ||
\once\override TimeSignature.stencil = | \once\override TimeSignature.stencil = | ||
#(lambda (grob) (grob-interpret-markup grob | #(lambda (grob) (grob-interpret-markup grob | ||
| Line 327: | Line 316: | ||
} | } | ||
} | } | ||
</lilypond> | </lilypond> | ||
| Line 334: | Line 321: | ||
[[Category:Symbols and glyphs]] | [[Category:Symbols and glyphs]] | ||
[[Category:Really cool]] | [[Category:Really cool]] | ||
[[Category:Snippet]] | |||