27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

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.

Repeats 76<br />

7<br />

<br />

<br />

Printing a repeat sign at the beginning of a piece<br />

A |: bar line can be printed at the beginning of a piece, by overriding the relevant property:<br />

\relative c'' {<br />

\once \override Score.BreakAlignment #'break-align-orders =<br />

#(make-vector 3 '(instrument-name<br />

left-edge<br />

ambitus<br />

span-bar<br />

breathing-sign<br />

clef<br />

key-signature<br />

time-signature<br />

staff-bar<br />

custos<br />

span-bar))<br />

\bar "|:"<br />

c1<br />

d1<br />

d4 e f g<br />

}<br />

<br />

<br />

<br />

Shortening volta brackets<br />

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

to shorten them by setting 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!