27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Expressive marks 48<br />

Expressive marks<br />

These snippets illustrate Section “Expressive marks” in Notation Reference.<br />

Adding beams, slurs, ties etc. when using tuplet and nontuplet<br />

rhythms<br />

<strong>LilyPond</strong> syntax can involve many unusual placements for parentheses, brackets etc., which<br />

might sometimes have to be interleaved. For example, when entering a manual beam, the left<br />

square bracket has to be placed after the starting note and its duration, not before. Similarly,<br />

the right square bracket should directly follow the note which is to be at the end of the requested<br />

beaming, even if this note happens to be inside a tuplet section. This snippet demonstrates how<br />

to combine manual beaming, manual slurs, ties and phrasing slurs with tuplet sections (enclosed<br />

within curly braces).<br />

{<br />

}<br />

r16[ g16 \times 2/3 { r16 e'8] }<br />

g16( a \times 2/3 { b d e') }<br />

g8[( a \times 2/3 { b d') e'] ~ }<br />

\time 2/4<br />

\times 4/5 { e'32\( a b d' e' } a'4.\)<br />

3<br />

3<br />

4 <br />

<br />

2<br />

5<br />

3<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Adding parentheses around an expressive mark or chordal note<br />

The \parenthesize function is a special tweak that encloses objects in parentheses. The associated<br />

grob is Score.ParenthesesItem.<br />

\relative c' {<br />

c2-\parenthesize -><br />

\override ParenthesesItem #'padding = #0.1<br />

\override ParenthesesItem #'font-size = #-4<br />

2<br />

}<br />

<br />

<br />

<br />

<br />

Adjusting the shape of falls and doits<br />

The shortest-duration-space property may have to be tweaked to adjust the shape of falls<br />

and doits.<br />

\relative c'' {<br />

\override Score.SpacingSpanner #'shortest-duration-space = #4.0

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

Saved successfully!

Ooh no, something went wrong!