4 I have extend Mats' patches to allow accidental transposition:
5 \keysignature bes es fis;
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
16 - Note that transpose eses of fis-major = as-major
17 - Note also that key signatures specified with \property keySignature
20 /Mats B, March 21, 2001
25 description = "Transposition Test file";
26 enteredby = "Eric Bullinger";
27 copyright = "public domain";
33 vOne = \notes \relative c''{
44 vTwo = \notes \transpose d' { \vOne }
46 vThree = \notes \relative c''{
48 % \keysignature fis cis;
49 \property Staff.keySignature = #'((0 . 1)(3 . 1))
52 % \keysignature bes es fis;
53 \property Staff.keySignature = #'((3 . 1)(2 . -1)(6 . -1))
55 % \keysignature fis cis gis dis ais eis;
56 \property Staff.keySignature = #'((2 . -1)(5 . -1)(1 . 1)(4 . 1)(0 . 1)(3 . 1))
60 vFour = \notes \transpose d' \vThree
64 \context Staff=vOne \vOne
65 \context Staff=vTwo \vTwo
66 \context Staff=vThree \vThree
67 \context Staff=vFour \vFour
69 \paper { linewidth= 130.\mm; }