]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/score.cc (default_rendering): use Music_output too.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 18 Apr 2005 12:53:17 +0000 (12:53 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 18 Apr 2005 12:53:17 +0000 (12:53 +0000)
* lily/text-spanner.cc: add bound-padding.

* lily/line-interface.cc (make_arrow): new function. Patch by
Jonatan Liljedahl <http://kymatica.com>
(arrows): idem.

* lily/line-spanner.cc (line_stencil): add arrows.

ChangeLog
lily/score.cc

index faecbcf94b1ffc92c83babc4035f00a371064424..43bd3a5a3c2d5a189a03148960b358d84eca1a8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-04-18  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * lily/score.cc (default_rendering): use Music_output too.
+
        * input/test/chord-names-languages.ly (Module): rename file.
 
        * lily/text-spanner.cc: add bound-padding.
index 68146c1676a0a80cf1c3010bfbfc03ecfadfb4e0..ee628b9b25f91863056b6726c67bb7d80ea98145 100644 (file)
@@ -116,27 +116,25 @@ default_rendering (SCM music, SCM outdef,
     }
 
   SCM context = ly_run_translator (music, scaled_def, key);
-  if (Global_context *g = dynamic_cast<Global_context *>
-      (unsmob_context (context)))
+  Music_output *output = unsmob_music_output (ly_format_output (context));
+      
+  if (Paper_score *pscore = dynamic_cast<Paper_score*> (output))
     {
-      SCM systems = ly_format_output (context);
-      Music_output *output = g->get_output ();
-      if (systems != SCM_UNDEFINED)
-       {
-         /* ugh, this is strange, Paper_book without a Book object. */
-         Paper_book *paper_book = new Paper_book ();
-         paper_book->header_ = header;
-         paper_book->paper_ = unsmob_output_def (scaled_bookdef);
+      /* ugh, this is strange, Paper_book without a Book object. */
+      Paper_book *paper_book = new Paper_book ();
+      paper_book->header_ = header;
+      paper_book->paper_ = unsmob_output_def (scaled_bookdef);
 
-         if (ly_c_module_p (header))
-           paper_book->add_score (header);
-         paper_book->add_score (systems);
+      if (ly_c_module_p (header))
+       paper_book->add_score (header);
 
-         paper_book->classic_output (ly_scm2string (outname));
-         scm_gc_unprotect_object (paper_book->self_scm ());
-       }
-      scm_gc_unprotect_object (output->self_scm ());
+      SCM systems = pscore->get_paper_systems ();
+      paper_book->add_score (systems);
+
+      paper_book->classic_output (ly_scm2string (outname));
+      scm_gc_unprotect_object (paper_book->self_scm ());
     }
+  scm_gc_unprotect_object (output->self_scm ());
 
   scm_remember_upto_here_1 (scaled_def);
   scm_remember_upto_here_1 (scaled_bookdef);