[ << Tweaking output ] | [Top][Contents][Index][ ? ] | [ Working on LilyPond projects >> ] | ||
[ < Properties found in interfaces ] | [ Up : The Internals Reference manual ] | [ Appearance of objects > ] |
4.2.3 Types of properties
So far we have seen two types of property: number
and
symbol
. To be valid, the value given to a property
must be of the correct type and obey the rules for that type.
The type of property is always shown in brackets after the
property name in the IR. Here is a list of the types you may
need, together with the rules for that type, and some examples.
You must always add a hash symbol, #
, of course,
to the front of these values when they are entered in the
\override
command.
Property type | Rules | Examples |
---|---|---|
Boolean | Either True or False, represented by #t or #f | |
Dimension (in staff space) | A positive decimal number (in units of staff space) | |
Direction | A valid direction constant or its numerical equivalent (decimal values between -1 and 1 are allowed) | |
Integer | A positive whole number | |
List | A set of values separated by spaces, enclosed in parentheses and preceded by an apostrophe | |
Markup | Any valid markup | |
Moment | A fraction of a whole note constructed with the make-moment function | |
Number | Any positive or negative decimal value | |
Pair (of numbers) | Two numbers separated by a ‘space . space’ and enclosed in brackets preceded by an apostrophe | |
Symbol | Any of the set of permitted symbols for that property, preceded by an apostrophe | |
Unknown | A procedure, or | |
Vector | A list of three items enclosed in parentheses and preceded
by apostrophe-hash, | |
See also
Learning Manual: Scheme tutorial.
[ << Tweaking output ] | [Top][Contents][Index][ ? ] | [ Working on LilyPond projects >> ] | ||
[ < Properties found in interfaces ] | [ Up : The Internals Reference manual ] | [ Appearance of objects > ] |