X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fquote-iterator.cc;h=58d4378d2543a9a55cc65cec2d6250dd655e2f41;hb=e434a44b5d693cba78b5debb929a76da4c744981;hp=272f0808adda098fbf35cb32d055e1ae47a5ec73;hpb=d548c339bc07e4a707c1092507afe2d672e0457d;p=lilypond.git diff --git a/lily/quote-iterator.cc b/lily/quote-iterator.cc index 272f0808ad..58d4378d25 100644 --- a/lily/quote-iterator.cc +++ b/lily/quote-iterator.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2006 Han-Wen Nienhuys + (c) 2004--2009 Han-Wen Nienhuys */ #include "music-wrapper-iterator.hh" @@ -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,10 +243,10 @@ Quote_iterator::process (Moment m) if (me_pitch) mp = *me_pitch; - Pitch diff = pitch_interval (mp, qp); - - SCM props = transpose_mutable (ev->get_property_alist (true), diff); - ev = new Stream_event (ev->get_property ("class"), props); + Pitch diff = pitch_interval (qp, mp); + ev = ev->clone (); + + transpose_mutable (ev->get_property_alist (true), diff); transposed_musics_ = scm_cons (ev->unprotect (), transposed_musics_); } quote_outlet_.get_outlet ()->event_source ()->broadcast (ev);