]> git.donarmstrong.com Git - lilypond.git/commitdiff
transpose a clone of the quoted event
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 24 Dec 2006 15:12:47 +0000 (16:12 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 24 Dec 2006 15:12:47 +0000 (16:12 +0100)
lily/quote-iterator.cc

index 272f0808adda098fbf35cb32d055e1ae47a5ec73..c55aae34285f006177111621362ee3a4b9ea1cd6 100644 (file)
@@ -219,7 +219,7 @@ Quote_iterator::process (Moment m)
       Pitch *quote_pitch = unsmob_pitch (scm_cdar (entry));
 
       /*
-       The pitch that sounds when written central C is played.
+       The pitch that sounds like central C
       */
       Pitch *me_pitch = unsmob_pitch (get_music ()->get_property ("quoted-transposition"));
       if (!me_pitch)
@@ -243,8 +243,9 @@ Quote_iterator::process (Moment m)
                  if (me_pitch)
                    mp = *me_pitch;
 
-                 Pitch diff = pitch_interval (mp, qp);
-
+                 Pitch diff = pitch_interval (qp, mp);
+                 ev = ev->clone ();
+                 
                  SCM props =  transpose_mutable (ev->get_property_alist (true), diff);
                  ev = new Stream_event (ev->get_property ("class"), props);
                  transposed_musics_ = scm_cons (ev->unprotect (), transposed_musics_);