27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chords 167<br />

Chords<br />

These snippets illustrate Section “Chord notation” in Notation Reference.<br />

Adding a figured bass above or below the notes<br />

When writing a figured bass, here’s a way to specify if you want your figures to be placed<br />

above or below the bass notes, by defining the BassFigureAlignmentPositioning #'direction<br />

property (exclusively in a Staff context). Choices are #UP (or #1), #CENTER (or #0) and #DOWN<br />

(or #-1).<br />

As you can see here, this property can be changed as many times as you wish. Use \once<br />

\override if you don’t want the tweak to apply to the whole score.<br />

bass = {<br />

\clef bass<br />

g4 b, c d<br />

e d8 c d2<br />

}<br />

continuo = \figuremode {<br />

4 8<br />

\once \override Staff.BassFigureAlignmentPositioning #'direction = #CENTER<br />

8 4<br />

\override Staff.BassFigureAlignmentPositioning #'direction = #UP<br />

4 <br />

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

\override Staff.BassFigureAlignmentPositioning #'direction = #DOWN<br />

4. 8 4<br />

}<br />

\score {<br />

><br />

}<br />

6<br />

<br />

<br />

5<br />

<br />

6<br />

4 <br />

Adding bar lines to ChordNames context<br />

To add bar line indications in the ChordNames context, add the Bar_engraver.<br />

\new ChordNames \with {<br />

\override BarLine #'bar-size = #4<br />

\consists "Bar_engraver"<br />

}<br />

\chordmode {<br />

f1:maj7 f:7 bes:7<br />

}

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

Saved successfully!

Ooh no, something went wrong!