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.

Repeats 99<br />

}<br />

(right-edge . (extra-space . 0.5))<br />

;; free up some space between time signature<br />

;; and repeat bar l<strong>in</strong>e<br />

(staff-bar . (extra-space . 1)))<br />

\bar "|:"<br />

c1<br />

d1<br />

d4 e f g<br />

<br />

<br />

<br />

<br />

<br />

<br />

Sett<strong>in</strong>g the double repeat default for volte<br />

<br />

<br />

<br />

There are three different styles of double repeats for volte, that can be set us<strong>in</strong>g<br />

doubleRepeatType.<br />

\relative c'' {<br />

\repeat volta 1 { c1 }<br />

\set Score.doubleRepeatType = #":|:"<br />

\repeat volta 1 { c1 }<br />

\set Score.doubleRepeatType = #":|.|:"<br />

\repeat volta 1 { c1 }<br />

\set Score.doubleRepeatType = #":|.:"<br />

\repeat volta 1 { c1 }<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Shorten<strong>in</strong>g volta brackets<br />

<br />

<br />

<br />

By default, the volta brackets will be drawn over all of the alternative music, but it is possible<br />

to shorten them by sett<strong>in</strong>g voltaSpannerDuration. In the next example, the bracket only lasts<br />

one measure, which is a duration of 3/4.<br />

\relative c'' {<br />

\time 3/4<br />

c4 c c<br />

\set Score.voltaSpannerDuration = #(ly:make-moment 3 4)<br />

\repeat volta 5 { d4 d d }<br />

\alternative {<br />

{<br />

e4 e e<br />

f4 f f<br />

}<br />

{ g4 g g }<br />

}<br />

}

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

Saved successfully!

Ooh no, something went wrong!