27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Rhythms 21<br />

Compound time signatures<br />

Odd 20th century time signatures (such as "5/8") can often be played as compound time signatures<br />

(e.g. "3/8 + 2/8"), which combine two or more inequal metrics. <strong>LilyPond</strong> can make<br />

such music quite easy to read and play, by explicitly printing the compound time signatures and<br />

adapting the automatic beaming behavior. (Graphic measure grouping indications can also be<br />

added; see the appropriate snippet in this database.)<br />

#(define ((compound-time one two num) grob)<br />

(grob-interpret-markup grob<br />

(markup #:override '(baseline-skip . 0) #:number<br />

(#:line (<br />

(#:column (one num))<br />

#:vcenter "+"<br />

(#:column (two num)))))))<br />

\relative c' {<br />

\override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")<br />

\time 5/8<br />

#(override-auto-beam-setting '(end 1 8 5 8) 1 4)<br />

c8 d e fis gis<br />

c8 fis, gis e d<br />

c8 d e4 gis8<br />

}<br />

<br />

2<br />

8 +3 8 <br />

<br />

<br />

<br />

<br />

Conducting signs, measure grouping signs<br />

Options to group beats within a bar are available through the Scheme function set-timesignature,<br />

which takes three arguments: the number of beats, the beat length, and the internal<br />

grouping of beats in the measure. If the Measure_grouping_engraver is included, the function<br />

will also create MeasureGrouping signs. Such signs ease reading rhythmically complex modern<br />

music. In the example, the 9/8 measure is subdivided in 2, 2, 2 and 3. This is passed to<br />

set-time-signature as the third argument: '(2 2 2 3):<br />

\score {<br />

\relative c'' {<br />

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

#(revert-auto-beam-setting '(end * * 9 8) 3 8)<br />

#(override-auto-beam-setting '(end 1 8 9 8) 1 4)<br />

#(override-auto-beam-setting '(end 1 8 9 8) 2 4)<br />

#(override-auto-beam-setting '(end 1 8 9 8) 3 4)<br />

g8 g d d g g a( bes g) |<br />

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

a4. g4<br />

}<br />

\layout {<br />

\context {<br />

\Staff<br />

\consists "Measure_grouping_engraver"<br />

}

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

Saved successfully!

Ooh no, something went wrong!