27.03.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Rhythms 58<br />

Stemlets<br />

In some notational conventions beams are allowed to extend over rests. Depend<strong>in</strong>g on preference,<br />

these beams may drop ’stemlets’ to help the eye appreciate the rhythm better, and <strong>in</strong> some<br />

modern music the rest itself is omitted and only the stemlet rema<strong>in</strong>s.<br />

This snippet shows a progression from traditional notation, to beams over the rest, to stemlets<br />

over the rest, to stemlets alone. Stemlets are generated by overrid<strong>in</strong>g the 'stemlet-length<br />

property of Stem, while rests are hidden by sett<strong>in</strong>g 'transparent = ##t.<br />

Some \markup elements are <strong>in</strong>cluded <strong>in</strong> the source to highlight the different notations.<br />

\paper { ragged-right = ##f }<br />

{<br />

}<br />

c'16^\markup { traditional } d' r f'<br />

g'16[^\markup { beams over rests } f' r d']<br />

% N.B. use Score.Stem to set for the whole score.<br />

\override Staff.Stem #'stemlet-length = #0.75<br />

c'16[^\markup { stemlets over rests } d' r f']<br />

g'16[^\markup { stemlets and no rests } f'<br />

\once \override Rest #'transparent = ##t<br />

r16 d']<br />

stemlets and no rests<br />

beams over rests stemlets over rests<br />

traditional <br />

<br />

<br />

Strict beat beam<strong>in</strong>g<br />

Beamlets can be set to po<strong>in</strong>t <strong>in</strong> the direction of the beat to which they belong. The first beam<br />

avoids stick<strong>in</strong>g out flags (the default); the second beam strictly follows the beat.<br />

\relative c'' {<br />

\time 6/8<br />

a8. a16 a a<br />

\set strictBeatBeam<strong>in</strong>g = ##t<br />

a8. a16 a a<br />

}<br />

<br />

8 6<br />

<br />

<br />

Subdivid<strong>in</strong>g beams<br />

The beams of consecutive 16th (or shorter) notes are, by default, not subdivided. That is, the<br />

three (or more) beams stretch unbroken over entire groups of notes. This behavior can be modified<br />

to subdivide the beams <strong>in</strong>to sub-groups by sett<strong>in</strong>g the property subdivideBeams. When set,<br />

multiple beams will be subdivided at <strong>in</strong>tervals def<strong>in</strong>ed by the current value of baseMoment by<br />

reduc<strong>in</strong>g the multiple beams to just one beam between the sub-groups. Note that baseMoment<br />

defaults to one over the denom<strong>in</strong>ator of the current time signature if not set explicitly. It must

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

Saved successfully!

Ooh no, something went wrong!