27.03.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.

Text 182<br />

Multi-measure rest markup<br />

Markups attached to a multi-measure rest will be centered above or below it. Long markups<br />

attached to multi-measure rests do not cause the measure to expand. To expand a multi-measure<br />

rest to fit the markup, use a spacer rest with an attached markup before the multi-measure rest.<br />

Note that the spacer rest causes a bar l<strong>in</strong>e to be <strong>in</strong>serted. Text attached to a spacer rest <strong>in</strong><br />

this way is left-aligned to the position where the note would be placed <strong>in</strong> the measure, but if<br />

the measure length is determ<strong>in</strong>ed by the length of the text, the text will appear to be centered.<br />

\relative c' {<br />

\compressFullBarRests<br />

\textLengthOn<br />

s1*0^\markup { [MAJOR GENERAL] }<br />

R1*19<br />

s1*0_\markup { \italic { Cue: ... it is yours } }<br />

s1*0^\markup { A }<br />

R1*30^\markup { [MABEL] }<br />

\textLengthOff<br />

c4^\markup { CHORUS } d f c<br />

}<br />

<br />

<br />

Ottava text<br />

[MAJOR GENERAL]<br />

[MABEL]<br />

19 A 30<br />

Cue: ... it is yours<br />

CHORUS<br />

Internally, \ottava sets the properties ottavation (for example, to 8va or 8vb) and<br />

middleCPosition. To override the text of the bracket, set ottavation after <strong>in</strong>vok<strong>in</strong>g \ottava.<br />

{<br />

}<br />

\ottava #1<br />

\set Staff.ottavation = #"8"<br />

c''1<br />

\ottava #0<br />

c'1<br />

\ottava #1<br />

\set Staff.ottavation = #"Text"<br />

c''1<br />

<br />

8<br />

<br />

<br />

Text<br />

Outputt<strong>in</strong>g the version number<br />

<br />

By putt<strong>in</strong>g the output of lilypond-version <strong>in</strong>to a lyric, it is possible to pr<strong>in</strong>t the version<br />

number of <strong>LilyPond</strong> <strong>in</strong> a score, or <strong>in</strong> a document generated with lilypond-book. Another<br />

possibility is to append the version number to the doc-str<strong>in</strong>g, <strong>in</strong> this manner:<br />

\score {<br />

\new Lyrics {

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

Saved successfully!

Ooh no, something went wrong!