09.09.2013 Views

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

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.

Hoofdstuk 4: Tweaking output 98<br />

<br />

<br />

<br />

<br />

sweet<br />

The<br />

love's e motion<br />

<br />

man<br />

8<br />

6<br />

<br />

<br />

who feels<br />

and the lyrics are all printed in italics.<br />

☛ ✟<br />

Zie ook<br />

Note : In lyrics always leave whitespace between the final syllable and<br />

the terminating brace.<br />

✡ ✠<br />

Extending: Sectie “Scheme tutorial” in Uitbreidingen.<br />

4.2.3 Types of properties<br />

So far we have seen two types of property: number and symbol. To be valid, the value given to<br />

a property must be of the correct type and obey the rules for that type. The type of property<br />

is always shown in brackets after the property name in the IR. Here is a list of the types you<br />

may need, together with the rules for that type, and some examples. You must always add a<br />

hash symbol, #, of course, to the front of these values when they are entered in the \override<br />

command, even if the value itself already starts with #. We only give examples for constants<br />

here: if you want to compute a value using Scheme, see Sectie “Calculations in Scheme” in<br />

Uitbreidingen.<br />

Property type Rules Examples<br />

Boolean Either True or False, represented by #t<br />

or #f<br />

#t, #f<br />

Dimension (in staff A decimal number (in units of staff 2.5, 0.34<br />

space)<br />

space)<br />

Direction A valid direction constant or its numerical<br />

equivalent (0 or CENTER indicate a<br />

neutral direction)<br />

LEFT, CENTER, UP, 1, -1<br />

Integer A whole number 3, -1<br />

List A sequence of constants or symbols sepa- '(left-edge staff-bar),<br />

rated by spaces, enclosed in parentheses<br />

and preceded by an apostrophe (quote<br />

mark)<br />

'(1), '(), '(1.0 0.25 0.5)<br />

Markup Any valid markup \markup { \italic "cresc."<br />

}, "bagpipe"<br />

Moment A fraction of a whole note constructed (ly:make-moment 1/4),<br />

with the make-moment function (ly:make-moment 3/8)<br />

Number Any positive or negative, possibly decimal,<br />

value<br />

3, -2.45<br />

Pair (of numbers) Two numbers separated by a ‘space .<br />

space’ and enclosed in brackets preceded<br />

by an apostrophe<br />

'(2 . 3.5), '(0.1 . -3.2)<br />

Symbol Any of the set of permitted sym- 'italic, 'inside<br />

Unknown<br />

bols for that property, preceded by an<br />

apostrophe<br />

A procedure, or #f to cause no action bend::print,<br />

ly:text-interface::print,<br />

#f<br />

Vector Constants enclosed in #(. . .). #(#t #t #f)

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

Saved successfully!

Ooh no, something went wrong!