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

}<br />

% Draw a circle round the follow<strong>in</strong>g bar number(s)<br />

\override Score.BarNumber #'stencil<br />

= #(make-stencil-circler 0.1 0.25 ly:text-<strong>in</strong>terface::pr<strong>in</strong>t)<br />

\repeat unfold 4 { c1 } \bar "|."<br />

<br />

<br />

4<br />

<br />

Pr<strong>in</strong>t<strong>in</strong>g metronome and rehearsal marks below the staff<br />

<br />

By default, metronome and rehearsal marks are pr<strong>in</strong>ted above the staff. To place them below<br />

the staff simply set the direction property of MetronomeMark or RehearsalMark appropriately.<br />

\layout { ragged-right = ##f }<br />

{<br />

}<br />

% Metronome marks below the staff<br />

\override Score.MetronomeMark #'direction = #DOWN<br />

\tempo 8. = 120<br />

c''1<br />

% Rehearsal marks below the staff<br />

\override Score.RehearsalMark #'direction = #DOWN<br />

\mark \default<br />

c''1<br />

<br />

<br />

<br />

= 120<br />

Pr<strong>in</strong>t<strong>in</strong>g note names with and without an octave marker<br />

The NoteNames context can be used to pr<strong>in</strong>t the text value of notes. The pr<strong>in</strong>tOctaveNames<br />

property turns on or off the representation of the octave of the note.<br />

scale = \relative c' {<br />

a4 b c d<br />

e4 f g a<br />

}<br />

\new Staff {<br />

><br />

A<br />

<br />

<br />

<br />

8

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

Saved successfully!

Ooh no, something went wrong!