27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

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

Changing beam knee gap<br />

Kneed beams are inserted automatically when a large gap is detected between the note heads.<br />

This behavior can be tuned through the auto-knee-gap property. A kneed beam is drawn if<br />

the gap is larger than the value of auto-knee-gap plus the width of the beam object (which<br />

depends on the duration of the notes and the slope of the beam). By default auto-knee-gap is<br />

set to 5.5 staff spaces.<br />

{<br />

}<br />

f8 f''8 f8 f''8<br />

\override Beam #'auto-knee-gap = #6<br />

f8 f''8 f8 f''8<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Changing form of multi-measure rests<br />

<br />

If there are ten or fewer measures of rests, a series of longa and breve rests (called in German<br />

"Kirchenpausen" - church rests) is printed within the staff; otherwise a simple line is shown.<br />

This default number of ten may be changed by overriding the expand-limit property.<br />

\relative c'' {<br />

\compressFullBarRests<br />

R1*2 | R1*5 | R1*9<br />

\override MultiMeasureRest #'expand-limit = #3<br />

R1*2 | R1*5 | R1*9<br />

}<br />

2 5 9 2 5 9<br />

<br />

Changing the time signature without affecting the beaming<br />

The \time command sets the properties timeSignatureFraction, beatLength, beatGrouping<br />

and measureLength in the Timing context, which is normally aliased to Score. Changing the<br />

value of timeSignatureFraction causes the new time signature symbol to be printed without<br />

changing any of the other properties:<br />

\relative c'' {<br />

\time 3/4<br />

a16 a a a a a a a a a a a<br />

% Change time signature symbol but keep 3/4 beaming<br />

% due to unchanged underlying time signature<br />

\set Score.timeSignatureFraction = #'(12 . 16)<br />

a16 a a a a a a a a a a a<br />

\time 12/16<br />

% Lose 3/4 beaming now \time has been changed

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

Saved successfully!

Ooh no, something went wrong!