27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

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.

Rhythms 28<br />

melody = \relative c'' {<br />

\set Staff.instrumentName = #"Bb Sop."<br />

\key g \major<br />

#(set-time-signature 25 8 '(3 2 2 3 2 2 2 2 3 2 2))<br />

\override Staff.TimeSignature #'stencil =<br />

#(custom-time-signature "3" "2" "2" "3" "2" "2"<br />

"2" "2" "3" "2" "2" "8")<br />

c8 c c d4 c8 c b c b a4 g fis8 e d c b' c d e4-^ fis8 g \break<br />

c,4. d4 c4 d4. c4 d c2 d4. e4-^ d4<br />

c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 \break<br />

c4. d4 c4 d4. c4 d c2 d4. e4-^ d4<br />

c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 \break<br />

}<br />

drum = \new DrumStaff \drummode {<br />

\bar "|:" bd4.^\markup { "Drums" } sn4 bd \bar ":" sn4.<br />

bd4 sn \bar ":" bd sn bd4. sn4 bd \bar ":|"<br />

}<br />

{<br />

}<br />

\melody<br />

\drum<br />

<br />

<br />

<br />

<br />

38 +2 <br />

8 +2<br />

8 +3<br />

8 +2<br />

8 +2<br />

8 +2<br />

8 +2<br />

8 +3<br />

8 +2<br />

8 +2 <br />

8 <br />

<br />

<br />

Bb Sop. <br />

2<br />

4<br />

6<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

25<br />

8<br />

Drums<br />

<br />

<br />

<br />

Making an object invisible with the ’transparent property<br />

<br />

Setting the transparent property will cause an object to be printed in "invisible ink": the<br />

object is not printed, but all its other behavior is retained. The object still takes up space, it<br />

takes part in collisions, and slurs, ties and beams can be attached to it.<br />

This snippet demonstrates how to connect different voices using ties. Normally, ties only<br />

connect two notes in the same voice. By introducing a tie in a different voice, and blanking the<br />

first up-stem in that voice, the tie appears to cross voices.

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

Saved successfully!

Ooh no, something went wrong!