10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

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 30<br />

}<br />

}<br />

<br />

\stemOn a'2 \bar "||"<br />

\stemOff a'\breve g'4 a'4<br />

\stemOn f'2 \bar "||"<br />

\stemOff a'\breve^\markup { \italic flexe }<br />

\stemOn g'2 \bar "||"<br />

<br />

flexe<br />

<br />

Compound time signatures<br />

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

signatures (e.g. \"3/8 + 2/8\"), which comb<strong>in</strong>e two or more <strong>in</strong>equal metrics. <strong>LilyPond</strong> can make<br />

such music quite easy to read and play, by explicitly pr<strong>in</strong>t<strong>in</strong>g the compound time signatures and<br />

adapt<strong>in</strong>g the automatic beam<strong>in</strong>g behavior.<br />

#(def<strong>in</strong>e ((compound-time one two num) grob)<br />

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

(markup #:override '(basel<strong>in</strong>e-skip . 0) #:number<br />

(#:l<strong>in</strong>e ((#: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 />

\set Staff.beatStructure = #'(2 3)<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 />

<br />

Conduct<strong>in</strong>g signs measure group<strong>in</strong>g signs<br />

Beat group<strong>in</strong>g with<strong>in</strong> a measure is controlled by the context property<br />

beatStructure. Values of beatStructure are established for many time signatures<br />

<strong>in</strong> ‘scm/time-signature-sett<strong>in</strong>gs.scm’. Values of beatStructure can be changed or set<br />

with \set. Alternatively, \time can be used to both set the time signature and establish the<br />

beat structure. For this, you specify the <strong>in</strong>ternal group<strong>in</strong>g of beats <strong>in</strong> a measure as a list of<br />

numbers (<strong>in</strong> Scheme syntax) before the time signature.<br />

\time applies to the Tim<strong>in</strong>g context, so it will not reset values of beatStructure or<br />

baseMoment that are set <strong>in</strong> other lower-level contexts, such as Voice.<br />

If the Measure_group<strong>in</strong>g_engraver is <strong>in</strong>cluded <strong>in</strong> one of the display contexts, measure<br />

group<strong>in</strong>g signs will be created. Such signs ease read<strong>in</strong>g rhythmically complex modern music.<br />

In the example, the 9/8 measure is grouped <strong>in</strong> two different patterns us<strong>in</strong>g the two

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

Saved successfully!

Ooh no, something went wrong!