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.

Rhythms 14<br />

}<br />

\new DrumVoice { \stemDown \drl }<br />

>><br />

>><br />

\layout { }<br />

\midi {<br />

\context {<br />

\Score<br />

tempoWholesPerMinute = #(ly:make-moment 120 4)<br />

}<br />

}<br />

timbales<br />

drums<br />

<br />

<br />

<br />

<br />

<br />

crash h.h. <br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Aligning bar numbers<br />

Bar numbers by default are right-aligned to their parent object. This is usually the left edge of<br />

a line or, if numbers are printed within a line, the left hand side of a bar line. The numbers may<br />

also be positioned directly over the bar line or left-aligned to the bar line.<br />

\relative c' {<br />

\set Score.currentBarNumber = #111<br />

\override Score.BarNumber #'break-visibility = #'#(#t #t #t)<br />

% Increase the size of the bar number by 2<br />

\override Score.BarNumber #'font-size = #2<br />

% Print a bar number every second measure<br />

\set Score.barNumberVisibility = #(every-nth-bar-number-visible 2)<br />

c1 | c1<br />

% Center-align bar numbers<br />

\override Score.BarNumber #'self-alignment-X = #CENTER<br />

c1 | c1<br />

% Left-align bar numbers<br />

\override Score.BarNumber #'self-alignment-X = #LEFT<br />

c1 | c1<br />

}<br />

<br />

<br />

<br />

112<br />

<br />

114<br />

Automatic beam subdivisions<br />

<br />

<br />

Beams can be subdivided automatically. By setting the property subdivideBeams, beams are<br />

subdivided at beat positions (as specified in beatLength).<br />

116

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

Saved successfully!

Ooh no, something went wrong!