]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/non-traditional-key-signatures.ly
Fix makelsr.py and update LSR
[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 context property
8 Staff.keySignature. However, non-standard key signatures can be
9 specified by setting this property directly. The format of this command
10 is a list: @code{ \\set Staff.keySignature =
11   #'((octave . step) . alter) } where, for each element in the list,
12 octave specifies the octave (0 being the octave from middle C to the B
13 above), step specifies the note within the octave (0 means C and 6
14 means B), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc. (Note the
15 leading comma.) Here is an example of a possible key signature for
16 generating a whole-tone scale:
17
18
19 " }
20 % begin verbatim
21 \relative c' {
22            \new Staff {
23              \set Staff.keySignature =
24                #`(((0 .  3) . ,SHARP) ((0 . 5) . ,FLAT) ((0 . 6) . ,FLAT))
25              c d e fis aes bes c2
26            }
27          }
28