From: Han-Wen Nienhuys Date: Sun, 24 Dec 2006 15:12:47 +0000 (+0100) Subject: transpose a clone of the quoted event X-Git-Tag: release/2.11.5-1~22 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9b313bed3ad2aa632297b076e718b189c4551616;p=lilypond.git transpose a clone of the quoted event --- diff --git a/lily/quote-iterator.cc b/lily/quote-iterator.cc index 272f0808ad..c55aae3428 100644 --- a/lily/quote-iterator.cc +++ b/lily/quote-iterator.cc @@ -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_);