10.04.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.

Expressive marks 63<br />

Expressive marks<br />

Section “Expressive marks” <strong>in</strong> Notation Reference<br />

Add<strong>in</strong>g beams slurs ties etc. when us<strong>in</strong>g tuplet and non-tuplet<br />

rhythms<br />

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

might sometimes have to be <strong>in</strong>terleaved. For example, when enter<strong>in</strong>g a manual beam, the left<br />

square bracket has to be placed after the start<strong>in</strong>g 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 />

beam<strong>in</strong>g, even if this note happens to be <strong>in</strong>side a tuplet section. This snippet demonstrates how<br />

to comb<strong>in</strong>e manual beam<strong>in</strong>g, manual slurs, ties and phras<strong>in</strong>g slurs with tuplet sections (enclosed<br />

with<strong>in</strong> 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 />

<br />

3<br />

5<br />

<br />

<br />

<br />

<br />

<br />

4 <br />

<br />

2<br />

3<br />

3<br />

<br />

<br />

<br />

Add<strong>in</strong>g parentheses around an expressive mark or chordal note<br />

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

grob is ParenthesesItem.<br />

\relative c' {<br />

c2-\parenthesize -><br />

\override ParenthesesItem #'padd<strong>in</strong>g = #0.1<br />

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

2<br />

}<br />

<br />

<br />

<br />

<br />

<br />

Adjust<strong>in</strong>g the shape of falls and doits<br />

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

\relative c'' {<br />

\override Score.Spac<strong>in</strong>gSpanner #'shortest-duration-space = #4.0<br />

c2-\bendAfter #5<br />

c2-\bendAfter #-4.75<br />

c2-\bendAfter #8.5<br />

c2-\bendAfter #-6

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

Saved successfully!

Ooh no, something went wrong!