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.)
 
syntax is <code>\smiley #'type' #'size'</code>, or <code>\smileyNoteHead #'type'</code>.
 
''Smiley'' supports svg output.
 
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=904
% Add by P.P.Schneider on March 2014.
 
%here starts the snippet:


<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"


\header {
\markup\concat {  
  title = \markup\concat {  
  "I" \hspace #.3
    "I" \hspace #.3
  \raise #1.2 \smiley #"<3" #3 \hspace #.3
    \raise #1.2 \smiley #"<3" #3 \hspace #.3
  "P" \hspace #-.6
    "P" \hspace #-.6
  \raise #0.07 \smiley #"A" #4 \hspace #.1
    \raise #0.07 \smiley #"A" #4 \hspace #.1
  \smallCaps "ris"  
    \smallCaps "ris"  
  }
}
}


Line 320: Line 309:
     \context {
     \context {
       \Staff
       \Staff
       instrumentName = \markup\smiley #"A" #10
       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:
   }
   }
}
}
\paper { tagline = ##f }
</lilypond>
</lilypond>


Line 334: Line 321:
[[Category:Symbols and glyphs]]
[[Category:Symbols and glyphs]]
[[Category:Really cool]]
[[Category:Really cool]]
[[Category:Snippet]]