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

<br />

<br />

5<br />

1<br />

3<br />

<br />

3<br />

1 <br />

5 1<br />

3<br />

3<br />

1<br />

5<br />

Displaying complex chords<br />

5<br />

3<br />

1<br />

Here is a way to display a chord where the same note is played twice with different accidentals.<br />

fixA = {<br />

\once \override Stem #'length = #9<br />

\once \override Accidental #'extra-offset = #'(0.3 . 0)<br />

}<br />

fixB = {<br />

\once \override NoteHead #'extra-offset = #'(1.7 . 0)<br />

\once \override Stem #'rotation = #'(45 0 0)<br />

\once \override Stem #'extra-offset = #'(-0.2 . -0.2)<br />

\once \override Stem #'flag-style = #'no-flag<br />

\once \override Accidental #'extra-offset = #'(3.1 . 0)<br />

}<br />

\relative c' {<br />

> s<br />

}<br />

<br />

<br />

<br />

<br />

Manually break figured bass extenders for only some numbers<br />

Figured bass often uses extenders to indicate continuation of the corresponding step. However, in<br />

this case lilypond is in greedy-mode and uses extenders whenever possible. To break individual<br />

extenders, one can simply use a modifier \! to a number, which breaks any extender attributed<br />

to that number right before the number.<br />

bassfigures = \figuremode {<br />

\set useBassFigureExtenders = ##t<br />

4 | <br />

}<br />

><br />

<br />

<br />

<br />

6<br />

4<br />

4<br />

<br />

6<br />

4 4 4 4

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

Saved successfully!

Ooh no, something went wrong!