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

<br />

<br />

<br />

<br />

<br />

<br />

A<br />

men.<br />

Us<strong>in</strong>g double slurs for legato chords<br />

Some composers write two slurs when they want legato chords. This can be achieved by sett<strong>in</strong>g<br />

doubleSlurs.<br />

\relative c' {<br />

\set doubleSlurs = ##t<br />

4( )<br />

}<br />

<br />

Us<strong>in</strong>g the whiteout property<br />

Any graphical object can be pr<strong>in</strong>ted over a white background to mask parts of objects that<br />

lie beneath. This can be useful to improve the appearance of collisions <strong>in</strong> complex situations<br />

when reposition<strong>in</strong>g objects is impractical. It is necessary to explicitly set the layer property to<br />

control which objects are masked by the white background.<br />

In this example the collision of the tie with the time signature is improved by mask<strong>in</strong>g<br />

out the part of the tie that crosses the time signature by sett<strong>in</strong>g the whiteout property of<br />

TimeSignature. To do this TimeSignature is moved to a layer above Tie, which is left <strong>in</strong><br />

the default layer of 1, and StaffSymbol is moved to a layer above TimeSignature so it is not<br />

masked.<br />

{<br />

}<br />

\override Score.StaffSymbol #'layer = #4<br />

\override Staff.TimeSignature #'layer = #3<br />

b'2 b'~<br />

\once \override Staff.TimeSignature #'whiteout = ##t<br />

\time 3/4<br />

b' r4<br />

<br />

4 3 <br />

Vertical l<strong>in</strong>e as a baroque articulation mark<br />

This short vertical l<strong>in</strong>e placed above the note is commonly used <strong>in</strong> baroque music. Its mean<strong>in</strong>g<br />

can vary, but generally <strong>in</strong>dicates notes that should be played with more “weight”. The follow<strong>in</strong>g<br />

example demonstrates how to achieve such a notation.<br />

upl<strong>in</strong>e =<br />

#(let ((m (make-articulation "stopped")))<br />

(set! (ly:music-property m 'tweaks)<br />

(acons 'font-size 3<br />

(acons 'stencil (lambda (grob)<br />

(grob-<strong>in</strong>terpret-markup<br />

grob

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

Saved successfully!

Ooh no, something went wrong!