10.04.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

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.

Editorial annotations 149<br />

Apply<strong>in</strong>g note head styles depend<strong>in</strong>g on the step of the scale<br />

The shapeNoteStyles property can be used to def<strong>in</strong>e various note head styles for each step of<br />

the scale (as set by the key signature or the tonic property). This property requires a set of<br />

symbols, which can be purely arbitrary (geometrical expressions such as triangle, cross, and<br />

xcircle are allowed) or based on old American engrav<strong>in</strong>g tradition (some lat<strong>in</strong> note names are<br />

also allowed).<br />

That said, to imitate old American song books, there are several predef<strong>in</strong>ed note head styles<br />

available through shortcut commands such as \aikenHeads or \sacredHarpHeads.<br />

This example shows different ways to obta<strong>in</strong> shape note heads, and demonstrates the ability<br />

to transpose a melody without los<strong>in</strong>g the correspondence between harmonic functions and note<br />

head styles.<br />

fragment = {<br />

\key c \major<br />

c2 d<br />

e2 f<br />

g2 a<br />

b2 c<br />

}<br />

\new Staff {<br />

\transpose c d<br />

\relative c' {<br />

\set shapeNoteStyles = #'#(do re mi fa<br />

#f la ti)<br />

\fragment<br />

}<br />

}<br />

5<br />

\break<br />

\relative c' {<br />

\set shapeNoteStyles = #'#(cross triangle fa #f<br />

mensural xcircle diamond)<br />

\fragment<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Avoid<strong>in</strong>g collisions with chord f<strong>in</strong>ger<strong>in</strong>gs<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

F<strong>in</strong>ger<strong>in</strong>gs and str<strong>in</strong>g numbers applied to <strong>in</strong>dividual notes will automatically avoid beams and<br />

stems, but this is not true by default for f<strong>in</strong>ger<strong>in</strong>gs and str<strong>in</strong>g numbers applied to the <strong>in</strong>dividual<br />

notes of chords. The follow<strong>in</strong>g example shows how this default behavior can be overridden.<br />

\relative c' {

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

Saved successfully!

Ooh no, something went wrong!