10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Tweaks and overrides 430<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Mov<strong>in</strong>g dotted notes <strong>in</strong> polyphony<br />

When a dotted note <strong>in</strong> the upper voice is moved to avoid a collision with a note <strong>in</strong> another voice,<br />

the default is to move the upper note to the right. This behaviour can be over-ridden by us<strong>in</strong>g<br />

the prefer-dotted-right property of NoteCollision.<br />

\new Staff \relative c' ><br />

<br />

<br />

<br />

<br />

Mov<strong>in</strong>g slur positions vertically<br />

The vertical position of a slur can be adjusted us<strong>in</strong>g the positions property of Slur. The<br />

property has 2 parameters, the first referr<strong>in</strong>g to the left end of the slur and the second to the<br />

right. The values of the parameters are not used by <strong>LilyPond</strong> to make an exact movement<br />

of the slur - <strong>in</strong>stead it selects what placement of the slur looks best, tak<strong>in</strong>g <strong>in</strong>to account the<br />

parameter values. Positive values move the slur up, and are appropriate for notes with stems<br />

down. Negative values move downward slurs further down.<br />

\relative c' {<br />

\stemDown<br />

e4( a)<br />

\override Slur #'positions = #'(1 . 1)<br />

e4( a)<br />

\override Slur #'positions = #'(2 . 2)<br />

e4( a)<br />

\override Slur #'positions = #'(3 . 3)<br />

e4( a)<br />

\override Slur #'positions = #'(4 . 4)<br />

e4( a)<br />

\override Slur #'positions = #'(5 . 5)<br />

e4( a)<br />

\override Slur #'positions = #'(0 . 5)<br />

e4( a)<br />

\override Slur #'positions = #'(5 . 0)<br />

e4( a)<br />

\stemUp<br />

\override Slur #'positions = #'(-5 . -5)

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

Saved successfully!

Ooh no, something went wrong!