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