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

}<br />

<br />

<br />

<br />

<br />

<br />

Engrav<strong>in</strong>g tremolos with float<strong>in</strong>g beams<br />

If a tremolo’s total duration is less than a quarter-note, or exactly a half-note, or between a<br />

half-note and a whole-note, it is normally typeset with all beams touch<strong>in</strong>g the stems. Certa<strong>in</strong><br />

engrav<strong>in</strong>g styles typeset some of these beams as centered float<strong>in</strong>g beams that do not touch the<br />

stems. The number of float<strong>in</strong>g beams <strong>in</strong> this type of tremolo is controlled with the 'gap-count<br />

property of the Beam object, and the size of the gaps between beams and stems is set with the<br />

'gap property.<br />

\relative c'' {<br />

\repeat tremolo 8 { a32 f }<br />

\override Beam #'gap-count = #1<br />

\repeat tremolo 8 { a32 f }<br />

\override Beam #'gap-count = #2<br />

\repeat tremolo 8 { a32 f }<br />

\override Beam #'gap-count = #3<br />

\repeat tremolo 8 { a32 f }<br />

}<br />

\override Beam #'gap-count = #3<br />

\override Beam #'gap = #1.33<br />

\repeat tremolo 8 { a32 f }<br />

\override Beam #'gap = #1<br />

\repeat tremolo 8 { a32 f }<br />

\override Beam #'gap = #0.67<br />

\repeat tremolo 8 { a32 f }<br />

\override Beam #'gap = #0.33<br />

\repeat tremolo 8 { a32 f }<br />

<br />

Enter<strong>in</strong>g several tuplets us<strong>in</strong>g only one \times command<br />

The property tupletSpannerDuration sets how long each of the tuplets conta<strong>in</strong>ed with<strong>in</strong> the<br />

brackets after \times should last. Many consecutive tuplets can then be placed with<strong>in</strong> a s<strong>in</strong>gle<br />

\times expression, thus sav<strong>in</strong>g typ<strong>in</strong>g.<br />

In the example, two triplets are shown, while \times was entered only once.<br />

Read the relevant sections of the Notation Reference for more <strong>in</strong>formation about<br />

ly:make-moment.<br />

\relative c' {<br />

\time 2/4<br />

\set tupletSpannerDuration = #(ly:make-moment 1 4)<br />

\times 2/3 { c8 c c c c c }<br />

}

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

Saved successfully!

Ooh no, something went wrong!