source file of the GNU LilyPond music typesetter
- (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "paper-score.hh"
#include "all-font-metrics.hh"
#include "gourlay-breaking.hh"
-#include "ly-module.hh"
#include "main.hh"
#include "misc.hh"
#include "output-def.hh"
Break_algorithm *algorithm = 0;
Array<Column_x_positions> sol;
- algorithm = new Gourlay_breaking ;
+ algorithm = new Gourlay_breaking;
algorithm->set_pscore (this);
sol = algorithm->solve ();
delete algorithm;
SCM
Paper_score::process (String)
{
- if (verbose_global_b)
- progress_indication (_f ("Element count %d (spanners %d) ",
+ if (be_verbose_global)
+ message (_f ("Element count %d (spanners %d) ",
system_->element_count (),
system_->spanner_count ()));
- progress_indication (_ ("Preprocessing graphical objects...") + " ");
+ message (_ ("Preprocessing graphical objects...") + " ");
/* FIXME: Check out why we need this - removing gives assertion failures
down the road.
-
+
doubly, also done in Score_engraver */
Link_array<Grob> pc (system_->columns ());
pc[0]->set_property ("breakable", SCM_BOOL_T);
pc.top ()->set_property ("breakable", SCM_BOOL_T);
-
+
system_->pre_processing ();
-
+
Array<Column_x_positions> breaking = calc_breaking ();
system_->break_into_pieces (breaking);
SCM lines = system_->get_lines ();
-#if 0
- /* gourlay:do_solve also prints newline. */
- progress_indication ("\n");
-#endif
-
- /* Only keep result stencils in lines_, *title_; delete all grobs. */
- systems_ = SCM_EOL;
-
+
+ /*
+ retain Grobs, since they are pointed to by the point & click data
+ structures, and are not marked fully, because child -> parent
+ links aren't marked.
+ */
return lines;
}