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

<br />

mensural<br />

<br />

neomensural<br />

<br />

<br />

classical<br />

<br />

default <br />

<br />

Revert<strong>in</strong>g default beam end<strong>in</strong>gs<br />

To typeset beams grouped 3-4-3-2 <strong>in</strong> 12/8 it is necessary first to override the default beam<br />

end<strong>in</strong>gs <strong>in</strong> 12/8, and then to set up the new beam<strong>in</strong>g end<strong>in</strong>gs:<br />

\relative c'' {<br />

\time 12/8<br />

}<br />

% Default beam<strong>in</strong>g<br />

a8 a a a a a a a a a a a<br />

% Set new values for beam end<strong>in</strong>gs<br />

\set Score.beatStructure = #'(3 4 3 2)<br />

a8 a a a a a a a a a a a<br />

12<br />

8 <br />

Rhythmic slashes<br />

In “simple” lead-sheets, sometimes no actual notes are written, <strong>in</strong>stead only “rhythmic patterns”<br />

and chords above the measures are notated giv<strong>in</strong>g the structure of a song. Such a feature is for<br />

example useful while creat<strong>in</strong>g/transcrib<strong>in</strong>g the structure of a song and also when shar<strong>in</strong>g lead<br />

sheets with guitarists or jazz musicians. The standard support for this us<strong>in</strong>g \repeat percent<br />

is unsuitable here s<strong>in</strong>ce the first beat has to be an ord<strong>in</strong>ary note or rest. This example shows two<br />

solutions to this problem, by redef<strong>in</strong><strong>in</strong>g ord<strong>in</strong>ary rests to be pr<strong>in</strong>ted as slashes. (If the duration<br />

of each beat is not a quarter note, replace the r4 <strong>in</strong> the def<strong>in</strong>itions with a rest of the appropriate<br />

duration).<br />

% Macro to pr<strong>in</strong>t s<strong>in</strong>gle slash<br />

rs = {<br />

\once \override Rest #'stencil = #ly:percent-repeat-item-<strong>in</strong>terface::beat-slash<br />

\once \override Rest #'thickness = #0.48<br />

\once \override Rest #'slope = #1.7<br />

r4<br />

}

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

Saved successfully!

Ooh no, something went wrong!