]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/non-traditional-key-signatures.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / non-traditional-key-signatures.ly
1 %% Do not edit this file; it is auto-generated from LSR!
2 %% Tags: pitches, staff-notation
3 \version "2.11.35"
4
5 \header { texidoc = "
6 The commonly used @code{\\key} command sets the context property
7 Staff.keySignature. However, non-standard key signatures can be
8 specified by setting this property directly. The format of this command
9 is a list: @code{ \\set Staff.keySignature =
10   #'((octave . step) . alter) } where, for each element in the list,
11 octave specifies the octave (0 being the octave from middle C to the B
12 above), step specifies the note within the octave (0 means C and 6
13 means B), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc. (Note the
14 leading comma.) Here is an example of a possible key signature for
15 generating a whole-tone scale:
16
17
18 " }
19 % begin verbatim
20 \relative c' {
21            \new Staff {
22              \set Staff.keySignature =
23                #`(((0 .  3) . ,SHARP) ((0 . 5) . ,FLAT) ((0 . 6) . ,FLAT))
24              c d e fis aes bes c2
25            }
26          }
27