27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

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 329<br />

Positioning text markups inside slurs<br />

Text markups need to have the outside-staff-priority property set to false in order to be<br />

printed inside slurs.<br />

\relative c'' {<br />

\override TextScript #'avoid-slur = #'inside<br />

\override TextScript #'outside-staff-priority = ##f<br />

c2(^\markup { \halign #-10 \natural } d4.) c8<br />

}<br />

<br />

<br />

<br />

<br />

Printing a repeat sign at the beginning of a piece<br />

A |: bar line can be printed at the beginning of a piece, by overriding the relevant property:<br />

\relative c'' {<br />

\once \override Score.BreakAlignment #'break-align-orders =<br />

#(make-vector 3 '(instrument-name<br />

left-edge<br />

ambitus<br />

span-bar<br />

breathing-sign<br />

clef<br />

key-signature<br />

time-signature<br />

staff-bar<br />

custos<br />

span-bar))<br />

\bar "|:"<br />

c1<br />

d1<br />

d4 e f g<br />

}<br />

<br />

<br />

<br />

Printing bar numbers inside boxes or circles<br />

Bar numbers can also be printed inside boxes or circles.<br />

\relative c' {<br />

% Prevent bar numbers at the end of a line and permit them elsewhere<br />

\override Score.BarNumber #'break-visibility = #end-of-line-invisible<br />

\set Score.barNumberVisibility = #(every-nth-bar-number-visible 4)

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

Saved successfully!

Ooh no, something went wrong!