LilyPond Beginnershandleiding
LilyPond Beginnershandleiding
LilyPond Beginnershandleiding
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Hoofdstuk 3: Fundamentele concepten 65<br />
<br />
<br />
<br />
<br />
<br />
<br />
and this turns them off in all staves:<br />
><br />
<br />
<br />
<br />
<br />
<br />
<br />
As another example, if clefTransposition is set in the Score context this immediately<br />
changes the value of the transposition in all current staves and sets a new default value which<br />
will be applied to all staves.<br />
The opposite command, \unset, effectively removes the property from the context, which<br />
causes most properties to revert to their default value. Usually \unset is not required as a new<br />
\set command will achieve what is wanted.<br />
The \set and \unset commands can appear anywhere in the input file and will take effect<br />
from the time they are encountered until the end of the score or until the property is \set or<br />
\unset again. Let’s try changing the font size, which affects the size of the note heads (among<br />
other things) several times. The change is from the default value, not the most recently set value.<br />
c4 d<br />
% make note heads smaller<br />
\set fontSize = #-4<br />
e4 f |<br />
% make note heads larger<br />
\set fontSize = #2.5<br />
g4 a<br />
% return to default size<br />
\unset fontSize<br />
b4 c |<br />
<br />
<br />
<br />
<br />
We have now seen how to set the values of several different types of property. Note that<br />
integers and numbers are always preceded by a hash sign, #, while a true or false value is<br />
specified by ##t and ##f, with two hash signs. A text property should be enclosed in double<br />
quotation signs, as above, although we shall see later that text can actually be specified in a<br />
much more general way by using the very powerful \markup command.