X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-book.cc;h=195e978f65a1581e84d1f4913e6d45c104ae76d2;hb=1028d08be68c34f1e4f88cd84601be0762d39e9d;hp=bddeffe15084c1370ae85d611a368067357f7e07;hpb=6f664e0e318a1651f6fe9317a842bf9c7f476f08;p=lilypond.git diff --git a/lily/paper-book.cc b/lily/paper-book.cc index bddeffe150..195e978f65 100644 --- a/lily/paper-book.cc +++ b/lily/paper-book.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2004--2006 Jan Nieuwenhuizen + (c) 2004--2007 Jan Nieuwenhuizen */ #include "paper-book.hh" @@ -16,6 +16,7 @@ #include "paper-system.hh" #include "text-interface.hh" #include "warn.hh" +#include "program-option.hh" #include "ly-smobs.icc" @@ -91,9 +92,9 @@ Paper_book::output (SCM output_channel) { if (scm_is_pair (performances_)) { - SCM proc = ly_lily_module_constant ("paper-book-write-midis"); - - scm_call_2 (proc, self_scm (), output_channel); + SCM proc = ly_lily_module_constant ("write-performances-midis"); + + scm_call_2 (proc, performances (), output_channel); } if (scores_ == SCM_EOL) @@ -106,7 +107,7 @@ Paper_book::output (SCM output_channel) if (ly_is_module (header_)) scopes = scm_cons (header_, scopes); - string mod_nm = "scm framework-" + output_backend_global; + string mod_nm = "scm framework-" + get_output_backend_name (); SCM mod = scm_c_resolve_module (mod_nm.c_str ()); if (make_print) @@ -136,6 +137,13 @@ Paper_book::output (SCM output_channel) void Paper_book::classic_output (SCM output) { + if (scm_is_pair (performances_)) + { + SCM proc = ly_lily_module_constant ("write-performances-midis"); + + scm_call_2 (proc, performances (), output); + } + /* Generate all stencils to trigger font loads. */ systems (); @@ -146,7 +154,7 @@ Paper_book::classic_output (SCM output) if (ly_is_module (header_0_)) scopes = scm_cons (header_0_, scopes); - string format = output_backend_global; + string format = get_output_backend_name (); string mod_nm = "scm framework-" + format; SCM mod = scm_c_resolve_module (mod_nm.c_str ()); @@ -220,7 +228,7 @@ Paper_book::score_title (SCM header) /* read the breakbefore property of a score block and set up the preceding system-spec to honour it. That is, SYM should be the system spec that immediately precedes the score (from which HEADER is taken) - in the get_system_specs() list */ + in the get_system_specs () list */ void set_system_penalty (SCM sys, SCM header) { @@ -266,7 +274,7 @@ Paper_book::get_score_title (SCM header) Prob *ps = make_paper_system (props); paper_system_set_stencil (ps, title); - return ps->self_scm(); + return ps->self_scm (); } return SCM_BOOL_F;