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

11<br />

<br />

<br />

2<br />

<br />

6<br />

<br />

4<br />

Percent repeat counter<br />

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

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

\relative c'' {<br />

\set countPercentRepeats = ##t<br />

\repeat percent 4 { c1 }<br />

}<br />

<br />

4 3 2<br />

<br />

Position<strong>in</strong>g segno and coda (with l<strong>in</strong>e break)<br />

If you want to place an exit<strong>in</strong>g segno sign and add text like “D.S. al Coda” next to it where<br />

usually the staff l<strong>in</strong>es are you can use this snippet. The coda will resume <strong>in</strong> a new l<strong>in</strong>e. There<br />

is a variation documented <strong>in</strong> this snippet, where the coda will rema<strong>in</strong> on the same l<strong>in</strong>e.<br />

{<br />

\clef treble<br />

\key g \major<br />

\time 4/4<br />

\relative c'' {<br />

\repeat unfold 4 {<br />

c4 c c c<br />

}<br />

% Set segno sign as rehearsal mark and adjust size if needed<br />

% \once \override Score.RehearsalMark #'font-size = #3<br />

\mark \markup { \musicglyph #"scripts.segno" }<br />

\repeat unfold 2 {<br />

c4 c c c<br />

}<br />

% Set coda sign as rehearsal mark and adjust size if needed<br />

\once \override Score.RehearsalMark #'font-size = #4<br />

\mark \markup { \musicglyph #"scripts.coda" }<br />

\repeat unfold 2 {<br />

c4 c c c<br />

}<br />

% Should Coda be on anew l<strong>in</strong>e?<br />

% Coda NOT on new l<strong>in</strong>e: use \nobreak<br />

% Coda on new l<strong>in</strong>e: DON'T use \nobreak<br />

% \noBreak<br />

\bar "||"<br />

% Set segno sign as rehearsal mark and adjust size if needed<br />

\once \override Score.RehearsalMark #'break-visibility = #beg<strong>in</strong>-of-l<strong>in</strong>e-<strong>in</strong>visible

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

Saved successfully!

Ooh no, something went wrong!