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.

Contexts and engravers 362<br />

Contexts and engravers<br />

Section “Chang<strong>in</strong>g defaults” <strong>in</strong> Notation Reference<br />

Section “Contexts and engravers” <strong>in</strong> Learn<strong>in</strong>g Manual<br />

Add<strong>in</strong>g a figured bass above or below the notes<br />

When writ<strong>in</strong>g a figured bass, you can place the figures above or below the bass notes, by def<strong>in</strong><strong>in</strong>g<br />

the BassFigureAlignmentPosition<strong>in</strong>g #'direction property (exclusively <strong>in</strong> a Staff context).<br />

Choices are #UP (or #1), #CENTER (or #0) and #DOWN (or #-1).<br />

This property can be changed as many times as you wish. Use \once \override if you don’t<br />

want the override to apply to the whole score.<br />

bass = {<br />

\clef bass<br />

g4 b, c d<br />

e d8 c d2<br />

}<br />

cont<strong>in</strong>uo = \figuremode {<br />

4 4 4<br />

\override Staff.BassFigureAlignmentPosition<strong>in</strong>g #'direction = #UP<br />

%\bassFigureStaffAlignmentUp<br />

< _+ >4 <br />

\set Staff.useBassFigureExtenders = ##t<br />

\override Staff.BassFigureAlignmentPosition<strong>in</strong>g #'direction = #DOWN<br />

%\bassFigureStaffAlignmentDown<br />

4. 8 4<br />

}<br />

\score {<br />

><br />

}<br />

6 6<br />

<br />

5<br />

<br />

Add<strong>in</strong>g an extra staff at a l<strong>in</strong>e break<br />

4<br />

<br />

<br />

When add<strong>in</strong>g a new staff at a l<strong>in</strong>e break, some extra space is unfortunately added at the end of<br />

the l<strong>in</strong>e before the break (to fit <strong>in</strong> a key signature change, which will never be pr<strong>in</strong>ted anyway).<br />

The workaround is to add a sett<strong>in</strong>g of Staff.explicitKeySignatureVisibility as is shown<br />

<strong>in</strong> the example.<br />

\score {<br />

\new StaffGroup \relative c'' {<br />

\new Staff<br />

\key f \major<br />

c1 c^"Unwanted extra space" \break<br />

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

Saved successfully!

Ooh no, something went wrong!