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

\new StaffGroup ><br />

>><br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

1.<br />

<br />

<br />

1.<br />

<br />

<br />

<br />

<br />

<br />

<br />

2.<br />

2.<br />

<br />

<br />

<br />

<br />

Volta text markup us<strong>in</strong>g repeatCommands<br />

Though volte are best specified us<strong>in</strong>g \repeat volta, the context property repeatCommands<br />

must be used <strong>in</strong> cases where the volta text needs more advanced formatt<strong>in</strong>g with \markup.<br />

S<strong>in</strong>ce repeatCommands takes a list, the simplest method of <strong>in</strong>clud<strong>in</strong>g markup is to use an<br />

identifier for the text and embed it <strong>in</strong> the command list us<strong>in</strong>g the Scheme syntax #(list (list<br />

'volta textIdentifier)). Start- and end-repeat commands can be added as separate list<br />

elements:<br />

voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }<br />

\relative c'' {<br />

c1<br />

\set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)<br />

c4 b d e<br />

\set Score.repeatCommands = #'((volta #f) (volta "4.") end-repeat)<br />

f1<br />

\set Score.repeatCommands = #'((volta #f))<br />

}<br />

<br />

<br />

<br />

1.2.3... ad lib.<br />

<br />

<br />

<br />

<br />

<br />

<br />

4.

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

Saved successfully!

Ooh no, something went wrong!