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

2<br />

<br />

<br />

<br />

Percent repeat count visibility<br />

3<br />

Percent repeat counters can be shown at regular intervals by setting 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 />

2<br />

Percent repeat counter<br />

<br />

<br />

<br />

5 <br />

<br />

4<br />

<br />

<br />

4 <br />

<br />

<br />

10<br />

<br />

<br />

Measure repeats of more than two repeats can get a counter when the convenient property is<br />

switched, as shown in this example:<br />

\relative c'' {<br />

\set countPercentRepeats = ##t<br />

\repeat percent 4 { c1 }<br />

}<br />

<br />

2<br />

<br />

3<br />

<br />

4<br />

Positioning segno and coda (with line break)<br />

If you want to place an exiting segno sign and add text like "D.S. al Coda" next to it where<br />

usually the staff lines are you can use this snippet. The coda will resume in a new line. There<br />

is a variation documented in this snippet, where the coda will remain on the same line.<br />

{<br />

\clef treble<br />

\key g \major<br />

\time 4/4<br />

\relative c'' {<br />

\repeat unfold 2 {<br />

6

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

Saved successfully!

Ooh no, something went wrong!