10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tweaks and overrides 444<br />

\relative c {<br />

\clef "treble_8"<br />

\str<strong>in</strong>gNumberSpanner "5"<br />

\textSpannerDown<br />

a8\startTextSpan<br />

b c d e f\stopTextSpan<br />

\str<strong>in</strong>gNumberSpanner "4"<br />

g\startTextSpan a<br />

bes4 a g2\stopTextSpan<br />

}<br />

<br />

8<br />

<br />

<br />

<br />

5<br />

4<br />

Suppress<strong>in</strong>g warn<strong>in</strong>gs for clash<strong>in</strong>g note columns<br />

<br />

<br />

If notes from two voices with stems <strong>in</strong> the same direction are placed at the same position, and<br />

both voices have no shift or the same shift specified, the error message ‘warn<strong>in</strong>g: ignor<strong>in</strong>g<br />

too many clash<strong>in</strong>g note columns’ will appear when compil<strong>in</strong>g the <strong>LilyPond</strong> file. This message<br />

can be suppressed by sett<strong>in</strong>g the 'ignore-collision property of the NoteColumn object to<br />

#t. Please note that this does not just suppress warn<strong>in</strong>gs but stops <strong>LilyPond</strong> try<strong>in</strong>g to resolve<br />

collisions at all and so may have un<strong>in</strong>tended results unless used with care.<br />

ignore = \override NoteColumn #'ignore-collision = ##t<br />

\relative c' {<br />

><br />

}<br />

<br />

Time signature <strong>in</strong> parentheses - method 3<br />

Another way to put the time signature <strong>in</strong> parenthesis<br />

\relative c'' {<br />

\override Staff.TimeSignature #'stencil = #(lambda (grob)<br />

(parenthesize-stencil (ly:time-signature::pr<strong>in</strong>t grob) 0.1 0.4 0.4 0.1 ))<br />

\time 2/4<br />

a4 b8 c<br />

}<br />

<br />

4 2

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

Saved successfully!

Ooh no, something went wrong!