]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-arpeggio-engraver.cc
* scm/output-ps.scm (output-scopes): use ly:paper-lookup for font
[lilypond.git] / lily / span-arpeggio-engraver.cc
index 58b7243ffc404e5bbfae989787f0f159b80e0182..66c1e46da399214a08980d6a435d1629b449c0bc 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2000--2003 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 2000--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 
   Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
@@ -45,8 +45,8 @@ Span_arpeggio_engraver::Span_arpeggio_engraver ()
 void
 Span_arpeggio_engraver::acknowledge_grob (Grob_info info)
 {
-    if (info.origin_transes (this).size ()
-        && Arpeggio::has_interface (info.grob_))
+  if (Arpeggio::has_interface (info.grob_)
+      && info.origin_contexts (this).size ()) // huh? what's this test for? 
     {
       arpeggios_.push (info.grob_);
     }
@@ -65,7 +65,7 @@ Span_arpeggio_engraver::process_acknowledged_grobs ()
   if (!span_arpeggio_ && arpeggios_.size () > 1
       && to_boolean (get_property ("connectArpeggios")))
     {
-      span_arpeggio_ = new Item (get_property ("Arpeggio"));
+      span_arpeggio_ = make_item ("Arpeggio");
       announce_grob(span_arpeggio_, SCM_EOL);      
     }
 }
@@ -81,10 +81,10 @@ Span_arpeggio_engraver::stop_translation_timestep ()
        */
       for (int i=0; i < arpeggios_.size (); i ++)
        {
-         for (SCM s = arpeggios_[i]->get_grob_property ("stems");
+         for (SCM s = arpeggios_[i]->get_property ("stems");
               gh_pair_p (s); s = ly_cdr (s))
            Group_interface::add_thing (span_arpeggio_, ly_symbol2scm ("stems"), ly_car (s));
-         for (SCM s = arpeggios_[i]->get_grob_property ("side-support-elements");
+         for (SCM s = arpeggios_[i]->get_property ("side-support-elements");
               gh_pair_p (s); s = ly_cdr (s))
            Group_interface::add_thing (span_arpeggio_, ly_symbol2scm ("side-support-elements"), ly_car (s));
 
@@ -92,7 +92,7 @@ Span_arpeggio_engraver::stop_translation_timestep ()
            we can't kill the children, since we don't want to the
            previous note to bump into the span arpeggio; so we make
            it transparent.  */
-         arpeggios_[i]->set_grob_property ("molecule-callback", SCM_EOL);
+         arpeggios_[i]->set_property ("print-function", SCM_EOL);
        }
       
       typeset_grob (span_arpeggio_);