]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.3
authorfred <fred>
Thu, 10 Oct 1996 19:36:19 +0000 (19:36 +0000)
committerfred <fred>
Thu, 10 Oct 1996 19:36:19 +0000 (19:36 +0000)
globvars.hh
scores.cc [new file with mode: 0644]

index c79e017f71db0f4dd34f10b3c29a239c78666ba1..8b137891791fe96927ad78e64b0aad7bded08bdc 100644 (file)
@@ -1 +1 @@
-extern Score *the_score;
+
diff --git a/scores.cc b/scores.cc
new file mode 100644 (file)
index 0000000..cb06b00
--- /dev/null
+++ b/scores.cc
@@ -0,0 +1,29 @@
+#include "main.hh"
+#include "score.hh"
+
+static svec<Score*> sv;
+
+static String outfn="lelie.uit";
+
+void
+do_scores()
+{
+    for (int i=0; i < sv.sz(); i++) {  
+       sv[i]->process();
+       sv[i]->output(outfn);
+    }
+}
+
+void
+add_score(Score * s)
+{
+    sv.add(s);
+}
+
+
+void
+set_default_output(String s)
+{
+    outfn = s;
+}
+