]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Sat, 25 Jul 1998 12:23:56 +0000 (12:23 +0000)
committerfred <fred>
Sat, 25 Jul 1998 12:23:56 +0000 (12:23 +0000)
lily/include/score-element-info.hh [new file with mode: 0644]
lily/score-element-info.cc [new file with mode: 0644]
lily/timing-engraver.cc [new file with mode: 0644]

diff --git a/lily/include/score-element-info.hh b/lily/include/score-element-info.hh
new file mode 100644 (file)
index 0000000..3e31b87
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+  score-element-info.hh -- declare Score_element_info
+
+  source file of the GNU LilyPond music typesetter
+
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
+
+
+#ifndef STAFFELEMINFO_HH
+#define STAFFELEMINFO_HH
+
+#include "scalar.hh"
+#include "lily-proto.hh"
+#include "array.hh"
+
+/**
+  Data container for broadcasts 
+  */
+struct Score_element_info {
+    Score_element * elem_l_;
+    Request*req_l_;
+    Array<Engraver*> origin_grav_l_arr_;
+
+    /* *** */
+    Score_element_info (Score_element*, Request*);
+    Score_element_info();
+};
+
+
+#endif // STAFFELEMINFO_HH
diff --git a/lily/score-element-info.cc b/lily/score-element-info.cc
new file mode 100644 (file)
index 0000000..a0c6f68
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+  score-element-info.cc -- implement Score_element_info
+
+  source file of the GNU LilyPond music typesetter
+
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
+
+#include "score-element-info.hh"
+#include "request.hh"
+
+Score_element_info::Score_element_info (Score_element*s_l, Request*r_l)
+{
+  elem_l_ = s_l;
+  req_l_ = r_l;
+}
+
+Score_element_info::Score_element_info()
+{
+  elem_l_ = 0;
+  req_l_ = 0;
+}
+
+
+
diff --git a/lily/timing-engraver.cc b/lily/timing-engraver.cc
new file mode 100644 (file)
index 0000000..dfe98a9
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+  timing-grav.cc -- implement Timing_engraver
+
+  source file of the GNU LilyPond music typesetter
+
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
+#include "score-engraver.hh"
+#include "timing-engraver.hh"
+#include "command-request.hh"
+#include "score-element-info.hh"
+#include "multi-measure-rest.hh"
+
+
+void
+Timing_engraver::fill_staff_info (Staff_info &inf)
+{
+  inf.time_C_ = &time_;
+  inf.rhythmic_C_ = &default_grouping_;
+}
+
+IMPLEMENT_IS_TYPE_B1(Timing_engraver, Timing_translator);
+ADD_THIS_TRANSLATOR(Timing_engraver);