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.

Text 140<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 line to be inserted. Text attached to a spacer rest in<br />

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

the measure length is determined 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 />

[MAJOR GENERAL] [MABEL]<br />

19 CHORUS<br />

A 30<br />

<br />

<br />

Ottava text<br />

Cue: ... it is yours<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 invoking \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 />

Text<br />

<br />

<br />

Outputting the version number<br />

By putting the output of lilypond-version into a lyric, it is possible to print the version<br />

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

possibility is to append the version number to the doc-string, in this manner:

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

Saved successfully!

Ooh no, something went wrong!