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.

Percussion 198<br />

Percussion<br />

These snippets illustrate Section “Percussion” in Notation Reference.<br />

Adding drum parts<br />

Using the powerful pre-configured tools such as the \drummode function and the DrumStaff<br />

context, inputting drum parts is quite easy: drums are placed at their own staff positions (with<br />

a special clef symbol) and have note heads according to the drum. Attaching an extra symbol<br />

to the drum or restricting the number of lines is possible.<br />

drh = \drummode { cymc4.^"crash" hhc16^"h.h." hh hhc8 hho hhc8 hh16 hh hhc4 r4 r2 }<br />

drl = \drummode { bd4 sn8 bd bd4 > bd8 tommh tommh bd toml toml bd tomfh16 tomfh<br />

timb = \drummode { timh4 ssh timl8 ssh r timh r4 ssh8 timl r4 cb8 cb }<br />

\score {<br />

<br />

\new DrumStaff ><br />

>><br />

\layout { }<br />

\midi {<br />

\context {<br />

\Score<br />

tempoWholesPerMinute = #(ly:make-moment 120 4)<br />

}<br />

}<br />

}<br />

timbales<br />

drums<br />

<br />

<br />

<br />

<br />

<br />

crash h.h. <br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Heavily customized polymetric time signatures<br />

Though the polymetric time signature shown was not the most essential item here, it has been<br />

included to show the beat of this piece (which is the template of a real Balkan song!).

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

Saved successfully!

Ooh no, something went wrong!