-LY_DEFINE (ly_format_output, "ly:format-output",
- 2, 0, 0, (SCM context, SCM outname),
- "Given a Score context in its final state,"
- "process it and return the (rendered) result.")
-{
- Global_context *g = dynamic_cast<Global_context*> (unsmob_context (context));
- SCM_ASSERT_TYPE (g, context, SCM_ARG1, __FUNCTION__, "Global context");
- SCM_ASSERT_TYPE (is_string (outname), outname, SCM_ARG2, __FUNCTION__, "output filename");
-
- Music_output *output = g->get_output ();
- progress_indication ("\n");
- // ugh, midi still wants outname
- return output->process (ly_scm2string (outname));
+ *tail = scm_cons (s, SCM_EOL);
+ tail = SCM_CDRLOC (*tail);
+ }
+
+ scm_remember_upto_here_1 (scaled);
+ }
+
+ scm_remember_upto_here_1 (scm_key);
+ scm_remember_upto_here_1 (scaled_bookdef);
+ return outputs;