]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/non-traditional-key-signatures.ly
Merge branch 'master' of ssh://jomand@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 http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 %% Tags: pitches, staff-notation
4 \version "2.11.35"
5
6 \header { texidoc = "
7 The commonly used @code{\\key} command sets the @code{keySignature}
8 property, in the @code{Staff} context. However, non-standard key
9 signatures can be specified by setting this property directly. The
10 format of this command is a list: @code{ \\set Staff.keySignature =
11 #'(((octave . step) . alter) ((octave . step) . alter) ...) } where,
12 for each element in the list, octave specifies the octave (0 being the
13 octave from middle C to the B above), step specifies the note within
14 the octave (0 means C and 6 means B), and alter is ,SHARP ,FLAT
15 ,DOUBLE-SHARP etc. (Note the leading comma.)
16
17 However, for each item in the list, you can also use the alternative
18 format (step . alter), which specifies that the same alteration should
19 hold in all octaves.
20
21
22 Here is an example of a possible key signature for generating a
23 whole-tone scale: 
24 " }
25 % begin verbatim
26 \relative c' {
27   \set Staff.keySignature =
28     #`(((0 .  3) . ,SHARP) ((0 . 5) . ,FLAT) ((0 . 6) . ,FLAT))
29   c d e fis aes bes c2
30 }
31