27.03.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

W<strong>in</strong>ds 327<br />

,(ly:make-simple-closure (list<br />

ly:self-alignment-<strong>in</strong>terface::centered-on-x-parent))<br />

,(ly:make-simple-closure (list<br />

ly:self-alignment-<strong>in</strong>terface::x-aligned-on-self))))<br />

}<br />

\score<br />

{\relative c'<br />

{<br />

g\open<br />

\once \override TextScript #'staff-padd<strong>in</strong>g = #-1.0 \centermarkup<br />

g^\markup{\comb<strong>in</strong>e \musicglyph #"scripts.open" \musicglyph<br />

#"scripts.tenuto"}<br />

\centermarkup g^\markup{\comb<strong>in</strong>e \musicglyph #"scripts.open"<br />

\musicglyph #"scripts.stopped"}<br />

g\stopped<br />

}<br />

}<br />

<br />

<br />

<br />

<br />

Flute slap notation<br />

<br />

<br />

<br />

It is possible to <strong>in</strong>dicate special articulation techniques such as a flute “tongue slap” by replac<strong>in</strong>g<br />

the note head with the appropriate glyph.<br />

slap =<br />

#(def<strong>in</strong>e-music-function (parser location music) (ly:music?)<br />

#{<br />

\override NoteHead #'stencil =<br />

#(lambda (grob)<br />

(grob-<strong>in</strong>terpret-markup grob<br />

(markup #:musicglyph "scripts.sforzato")))<br />

\override NoteHead #'stem-attachment =<br />

#(lambda (grob)<br />

(let* ((thickness (ly:staff-symbol-l<strong>in</strong>e-thickness grob))<br />

(stem (ly:grob-object grob 'stem))<br />

(dir (ly:grob-property stem 'direction UP)))<br />

(cons 1 (+ (if (= dir DOWN)<br />

0.5<br />

0)<br />

(/ thickness 2)))))<br />

$music<br />

\revert NoteHead #'stencil<br />

\revert NoteHead #'stem-attachment<br />

#})<br />

\relative c' {<br />

c4 \slap c d r<br />

\slap { g4 a } b r<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!