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

Percent repeat count visibility<br />

Percent repeat counters can be shown at regular <strong>in</strong>tervals by sett<strong>in</strong>g the context property<br />

repeatCountVisibility.<br />

\relative c'' {<br />

\set countPercentRepeats = ##t<br />

\set repeatCountVisibility = #(every-nth-repeat-count-visible 5)<br />

\repeat percent 10 { c1 } \break<br />

\set repeatCountVisibility = #(every-nth-repeat-count-visible 2)<br />

\repeat percent 6 { c1 d1 }<br />

}<br />

11<br />

<br />

<br />

<br />

<br />

5<br />

<br />

<br />

2<br />

<br />

6<br />

<br />

4<br />

Position<strong>in</strong>g arpeggios<br />

If you need to extend or shorten an arpeggio, you can modify the upper and lower start positions<br />

<strong>in</strong>dependently.<br />

\relative c' {<br />

1\arpeggio<br />

\once \override Arpeggio #'positions = #'(-5 . 0)<br />

1\arpeggio<br />

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

1\arpeggio<br />

\once \override Arpeggio #'positions = #'(-5 . 5)<br />

1\arpeggio<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Position<strong>in</strong>g multi-measure rests<br />

Unlike ord<strong>in</strong>ary rests, there is no predef<strong>in</strong>ed command to change the staff position of a multimeasure<br />

rest symbol of either form by attach<strong>in</strong>g it to a note. However, <strong>in</strong> polyphonic music<br />

multi-measure rests <strong>in</strong> odd-numbered and even-numbered voices are vertically separated. The<br />

position<strong>in</strong>g of multi-measure rests can be controlled as follows:<br />

\relative c'' {<br />

% Multi-measure rests by default are set under the fourth l<strong>in</strong>e<br />

R1<br />

% They can be moved us<strong>in</strong>g an override<br />

\override MultiMeasureRest #'staff-position = #-2<br />

R1<br />

\override MultiMeasureRest #'staff-position = #0<br />

<br />

<br />

10

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

Saved successfully!

Ooh no, something went wrong!