27.03.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

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

(make-music 'PercentEvent<br />

'length (ly:music-length note)))<br />

\relative c'' {<br />

\makePercent s1<br />

}<br />

<br />

<br />

Measure counter<br />

This snippet provides a workaround for emitt<strong>in</strong>g measure counters us<strong>in</strong>g transparent percent<br />

repeats.<br />

><br />

2 3 4<br />

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

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

5 <br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

10

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

Saved successfully!

Ooh no, something went wrong!