]> git.donarmstrong.com Git - lilypond.git/commitdiff
(transpose): call Event::transpose() for
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 21 Nov 2004 22:46:29 +0000 (22:46 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 21 Nov 2004 22:46:29 +0000 (22:46 +0000)
transposing the tonic.

lily/event.cc

index 3031f0f212c91a5f5db5439f1dcb2a281aad2c6b..9fe4f5f64bf7252b2edc0980f33c0986d4caaa6d 100644 (file)
@@ -155,11 +155,9 @@ void
 Key_change_ev::transpose (Pitch p)
 {
   SCM pa = get_property ("pitch-alist");
-
   set_property ("pitch-alist", ly_transpose_key_alist (pa, p.smobbed_copy ()));
-  Pitch tonic = *unsmob_pitch (get_property ("tonic"));
-  set_property ("tonic",
-                   tonic.smobbed_copy ());
+
+  Event::transpose (p);
 }
 
 bool