]> git.donarmstrong.com Git - lilypond.git/blob - input/test/transposition.ly
release: 1.1.15
[lilypond.git] / input / test / transposition.ly
1 %{
2 Hi all,
3
4 I have extend Mats' patches to allow accidental transposition:
5         \keysignature bes es fis;
6                 = \transpose d =>
7         \keysignature gis;
8
9 As you can see in output =  the example file "test.ly" there are a few problems left:
10 - key undo (already in the Todo)
11 - "wrong" transposition: e.g. \transpose d of fis-major = gis-major (better as-major?).
12         The solution gis=as etc. would concern both note and key transposistion
13
14 Eric
15 %}
16
17 \header{
18 title =  "Test it";
19 description =    "Transposition Test file";
20 enteredby =      "Eric Bullinger";
21 copyright =      "public domain";
22 }
23
24
25 \version "1.0.14";
26
27 vOne = \notes \relative c''{
28         \clef"violin";
29         \key d;
30         \time 2/4 ;
31         d4 d |       
32         \key fis;
33         fis4 fis |         
34         \key es;
35         c4 c |
36 }
37
38 vTwo = \notes \transpose d' { \vOne }
39
40 vThree = \notes \relative c''{
41         \clef"violin";
42         \keysignature fis cis;
43         \time 2/4 ;
44         d4 d |       
45         \keysignature bes es fis;
46         fis4 fis |         
47         \keysignature fis cis gis dis ais eis;
48         cis4 ais4 |
49 }
50
51 vFour = \notes \transpose d' \vThree
52
53 \score {
54   \type StaffGroup <
55          \vOne
56          \vTwo
57          \vThree
58          \vFour
59   >
60         \paper { linewidth= 130.\mm; }
61 }
62
63
64