27.03.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 24<br />

}<br />

}<br />

b32^"baseMoment 1 16"[ a g f c' b a g]<br />

default<br />

subdivide beams<br />

baseMoment 1 8<br />

<br />

baseMoment 1 16<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Automatically change durations<br />

shiftDurations can be used to change the note lengths of a piece of music. It<br />

takes two arguments - the scal<strong>in</strong>g factor as a power of two, and the number of dots to be added<br />

as a positive <strong>in</strong>teger.<br />

\paper { <strong>in</strong>dent = 0 }<br />

music = \relative c'' { a1 b2 c4 d8 r }<br />

\score {<br />

\new Voice {<br />

\time 4/2<br />

\music<br />

\time 4/4<br />

\shiftDurations #1 #0 { \music }<br />

\time 2/4<br />

\shiftDurations #2 #0 { \music }<br />

\time 4/1<br />

\shiftDurations #-1 #0 { \music }<br />

\time 8/1<br />

\shiftDurations #-2 #0 { \music }<br />

\time 6/2<br />

\shiftDurations #0 #1 { \music }<br />

\time 7/2<br />

\shiftDurations #0 #2 { \music }<br />

}<br />

}<br />

4<br />

6<br />

<br />

4 <br />

2<br />

4 2 <br />

<br />

4 8 <br />

1 <br />

1<br />

2 6<br />

<br />

<br />

2 6<br />

<br />

2 7 <br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

1 4

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

Saved successfully!

Ooh no, something went wrong!