X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fpart-combine-engraver.cc;h=be9564685d2007314ab115236d45b3a7e2f515bb;hb=3d979b464ff0db6fd66573ef6249ba0088173bf0;hp=b6f091442ea329706dcd25dfe2ebb391b4b464f0;hpb=c4c0ba811cd526f047de3f4d3c77abcc32a3e076;p=lilypond.git diff --git a/lily/part-combine-engraver.cc b/lily/part-combine-engraver.cc index b6f091442e..be9564685d 100644 --- a/lily/part-combine-engraver.cc +++ b/lily/part-combine-engraver.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2000--2006 Jan Nieuwenhuizen + (c) 2000--2008 Jan Nieuwenhuizen Han-Wen Nienhuys */ @@ -15,6 +15,7 @@ #include "stem.hh" #include "stream-event.hh" #include "text-interface.hh" +#include "item.hh" #include "translator.icc" @@ -38,7 +39,7 @@ IMPLEMENT_TRANSLATOR_LISTENER (Part_combine_engraver, part_combine); void Part_combine_engraver::listen_part_combine (Stream_event *ev) { - event_ = ev; + ASSIGN_EVENT_ONCE (event_, ev); } Part_combine_engraver::Part_combine_engraver () @@ -55,9 +56,9 @@ Part_combine_engraver::process_music () { SCM what = event_->get_property ("class"); SCM text = SCM_EOL; - if (what == ly_symbol2scm ("solo1-event")) + if (what == ly_symbol2scm ("solo-one-event")) text = get_property ("soloText"); - else if (what == ly_symbol2scm ("solo2-event")) + else if (what == ly_symbol2scm ("solo-two-event")) text = get_property ("soloIIText"); else if (what == ly_symbol2scm ("unisono-event")) text = get_property ("aDueText"); @@ -100,10 +101,19 @@ Part_combine_engraver::stop_translation_timestep () ADD_ACKNOWLEDGER (Part_combine_engraver, note_head); ADD_ACKNOWLEDGER (Part_combine_engraver, stem); ADD_TRANSLATOR (Part_combine_engraver, - /* doc */ "Part combine engraver for orchestral scores: " - "Print markings a2, Solo, Solo II, and unisono ", - /* create */ "CombineTextScript", - /* accept */ "part-combine-event", - /* read */ "printPartCombineTexts soloText soloIIText " - "aDueText", - /* write */ ""); + /* doc */ + "Part combine engraver for orchestral scores: Print markings" + " @q{a2}, @q{Solo}, @q{Solo II}, and @q{unisono}.", + + /* create */ + "CombineTextScript ", + + /* read */ + "printPartCombineTexts " + "soloText " + "soloIIText " + "aDueText ", + + /* write */ + "" + );