-LY_DEFINE (ly_run_translator, "ly:run-translator",
- 2, 1, 0, (SCM mus, SCM output_def, SCM key),
- "Process @var{mus} according to @var{output_def}. \n"
- "An interpretation context is set up,\n"
- "and @var{mus} is interpreted with it. \n"
- "The context is returned in its final state.\n"
+LY_DEFINE (ly_make_global_translator, "ly:make-global-translator",
+ 1, 0, 0, (SCM global),
+ "Create a translator group and connect it to the global context\n"
+ "@var{global}. The translator group is returned.")
+{
+ Global_context *g = dynamic_cast<Global_context *> (unsmob_context (global));
+ SCM_ASSERT_TYPE (g, global, SCM_ARG1, __FUNCTION__, "Global context");
+
+ Translator_group *tg = new Translator_group ();
+ tg->connect_to_context (g);
+ g->implementation_ = tg;
+
+ return tg->unprotect ();
+}
+
+LY_DEFINE (ly_make_global_context, "ly:make-global-context",
+ 1, 1, 0, (SCM output_def, SCM key),
+ "Set up a global interpretation context, using the output\n"
+ "block @var{output_def}.\n"
+ "The context is returned.\n"