]> git.donarmstrong.com Git - lilypond.git/blob - input/test/transposition.ly
Added texidoc index and comments.
[lilypond.git] / input / test / transposition.ly
1 \version "1.7.18"
2
3 \header{ texidoc = "@cindex Transposition
4 Transposition Test file"
5 }
6
7
8 %{
9 Hi all,
10
11 I have extend Mats' patches to allow accidental transposition:
12         \keysignature bes es fis
13                 = \transpose c' d =>
14         \keysignature gis
15
16 As you can see in output =  the example file "test.ly" there are a few problems left:
17 - key undo (already in the Todo)
18 - "wrong" transposition: e.g. \transpose c' d of fis-major = gis-major (better as-major?).
19         The solution gis=as etc. would concern both note and key transposistion
20
21 Eric
22
23 - Note that transpose eses of fis-major = as-major 
24 - Note also that key signatures specified with \property keySignature 
25   are not transposed!
26
27   /Mats B, March 21, 2001
28 %}
29
30
31
32
33 vOne =  \notes \relative c''{
34         \clef"violin"
35         \key d \major
36         \time 2/4 
37         d4 d |       
38         \key fis \major
39         fis4 fis |         
40         \key es \major
41         c4 c |
42 }
43
44 vTwo =  \notes \transpose c d { \vOne }
45
46 vThree =  \notes \relative c''{
47         \clef"violin"
48 %        \keysignature fis cis
49         \property Staff.keySignature = #'((0 . 1)(3 . 1))
50         \time 2/4 
51         d4 d |       
52 %        \keysignature bes es fis
53         \property Staff.keySignature = #'((3 . 1)(2 . -1)(6 . -1))
54         fis4 fis |         
55 %        \keysignature fis cis gis dis ais eis
56         \property Staff.keySignature = #'((2 . -1)(5 . -1)(1 . 1)(4 . 1)(0 . 1)(3 . 1))
57         cis4 ais4 |
58 }
59
60 vFour =  \notes \transpose c d \vThree
61
62 \score {
63   \context StaffGroup <
64          \context Staff=vOne \vOne
65          \context Staff=vTwo \vTwo
66          \context Staff=vThree \vThree
67          \context Staff=vFour \vFour
68   >
69         \paper { linewidth= 130.\mm raggedright = ##t }
70 }
71
72
73
74 %% new-chords-done %%