LilyPond Beginnershandleiding
LilyPond Beginnershandleiding
LilyPond Beginnershandleiding
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Hoofdstuk 4: Tweaking output 100<br />
{<br />
}<br />
\time 12/16<br />
\override Staff.BarLine.stencil = ##f<br />
c4 b8 c d16 c d8 |<br />
g,8 a16 b8 c d4 e16 |<br />
e8<br />
12 <br />
16 <br />
<br />
<br />
<br />
<br />
Now the bar lines have vanished. Setting the stencil property to #f is such a frequent<br />
operation that there is a shorthand for it called \omit:<br />
{<br />
}<br />
\time 12/16<br />
\omit Staff.BarLine<br />
c4 b8 c d16 c d8 |<br />
g,8 a16 b8 c d4 e16 |<br />
e8<br />
12 <br />
16 <br />
<br />
<br />
<br />
<br />
Note, though, that setting the stencil property to #f will cause errors when the dimensions<br />
of the object are required for correct processing. For example, errors will be generated if the<br />
stencil property of the NoteHead object is set to #f. If this is the case, you can instead use<br />
the point-stencil function, which sets the stencil to a object with zero size:<br />
{<br />
}<br />
c4 c<br />
\once \override NoteHead.stencil = #point-stencil<br />
c4 c<br />
<br />
The break-visibility property<br />
<br />
We see from the BarLine properties in the IR that the break-visibility property requires<br />
a vector of three booleans. These control respectively whether bar lines are printed at the end<br />
of a line, in the middle of lines, and at the beginning of lines. For our example we want all<br />
bar lines to be suppressed, so the value we need is #(#f #f #f) (also available under the name<br />
all-invisible). Let’s try that, remembering to include the Staff context. Note also that in<br />
writing this value we have ## before the opening parenthesis. One # is required as part of vector<br />
constant syntax, and the first # is required, as always, to precede the value itself in the \override<br />
command.<br />
{<br />
\time 12/16