27.03.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.

Staff notation 132<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Non-traditional key signatures<br />

The commonly used \key command sets the keySignature property, <strong>in</strong> the Staff context.<br />

To create non-standard key signatures, set this property directly. The format of this command<br />

is a list:<br />

\set Staff.keySignature = #`(((octave . step) . alter) ((octave . step) . alter)<br />

...) where, for each element <strong>in</strong> the list, octave specifies the octave (0 be<strong>in</strong>g the octave<br />

from middle C to the B above), step specifies the note with<strong>in</strong> the octave (0 means C and 6<br />

means B), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc. (Note the lead<strong>in</strong>g comma.) The<br />

accidentals <strong>in</strong> the key signature will appear <strong>in</strong> the reverse order to that <strong>in</strong> which they are<br />

specified.<br />

Alternatively, for each item <strong>in</strong> the list, us<strong>in</strong>g the more concise format (step . alter) specifies<br />

that the same alteration should hold <strong>in</strong> all octaves.<br />

For microtonal scales where a “sharp” is not 100 cents, alter refers to the alteration as a<br />

proportion of a 200-cent whole tone.<br />

Here is an example of a possible key signature for generat<strong>in</strong>g a whole-tone scale:<br />

\relative c' {<br />

\set Staff.keySignature = #`(((0 . 6) . ,FLAT)<br />

((0 . 5) . ,FLAT)<br />

((0 . 3) . ,SHARP))<br />

c4 d e fis<br />

aes4 bes c2<br />

}<br />

<br />

<br />

Orchestra choir and piano template<br />

<br />

<br />

<br />

This template demonstrates the use of nested StaffGroup and GrandStaff contexts to subgroup<br />

<strong>in</strong>struments of the same type together, and a way to use \transpose so that variables<br />

hold music for transpos<strong>in</strong>g <strong>in</strong>struments at concert pitch.<br />

#(set-global-staff-size 17)<br />

\paper {<br />

<strong>in</strong>dent = 3.0\cm % space for <strong>in</strong>strumentName

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

Saved successfully!

Ooh no, something went wrong!