]> git.donarmstrong.com Git - lilypond.git/commitdiff
partial: 0.0.33.hanjan
authorHan-Wen Nienhuys & Jan Nieuwenhuizen <hanjan@lilypond.org>
Thu, 20 Feb 1997 23:15:12 +0000 (00:15 +0100)
committerHan-Wen Nienhuys & Jan Nieuwenhuizen <hanjan@lilypond.org>
Thu, 20 Feb 1997 23:15:12 +0000 (00:15 +0100)
hdr/midiscorewalker.hh [new file with mode: 0644]
hdr/midiwalker.hh [new file with mode: 0644]
src/midiscorewalker.cc [new file with mode: 0644]
src/midiwalker.cc [new file with mode: 0644]

diff --git a/hdr/midiscorewalker.hh b/hdr/midiscorewalker.hh
new file mode 100644 (file)
index 0000000..7ecce2a
--- /dev/null
@@ -0,0 +1,28 @@
+//
+//  midiscorewalker.hh -- declare Midi_score_walker
+//
+//  (c) 1996,97 Han-Wen Nienhuys, Jan Nieuwenhuizen <jan@digicash.com>
+//
+
+#ifndef MIDI_SCORE_WALKER_HH
+#define MIDI_SCORE_WALKER_HH
+
+#include "proto.hh"
+#include "grouping.hh"
+#include "scorewalker.hh"
+#include "midiitem.hh"
+
+/// a simple walker which collects midi stuff, and then outputs
+struct Midi_score_walker : Score_walker {
+    Midi_stream* midi_stream_l_;
+
+    /* *************** */
+    virtual void process();
+    
+    Midi_score_walker( Score* score_l, Midi_stream* midi_stream_l );
+};
+
+
+#endif // MIDI_SCORE_WALKER_HH
+
+
diff --git a/hdr/midiwalker.hh b/hdr/midiwalker.hh
new file mode 100644 (file)
index 0000000..e97c598
--- /dev/null
@@ -0,0 +1,28 @@
+//
+//  midiwalker.hh -- declare Midi_walker
+//
+//  (c) 1996,97 Han-Wen Nienhuys, Jan Nieuwenhuizen <jan@digicash.com>
+//
+
+#ifndef MIDIWALKER_HH
+#define MIDIWALKER_HH
+
+#include "proto.hh"
+#include "grouping.hh"
+#include "staffwalker.hh"
+
+/// a simple walker which collects midi stuff, and then outputs
+struct Midi_walker: Staff_walker {
+//    Midi_stream* midi_stream_l_;
+    /* *************** */
+    virtual void process_requests();
+    
+    Midi_walker( Midi_staff* mstaff_l );
+    Midi_column* mcol_l();
+    Midi_staff* mstaff_l();
+};
+
+
+#endif // MIDIWALKER_HH
+
+
diff --git a/src/midiscorewalker.cc b/src/midiscorewalker.cc
new file mode 100644 (file)
index 0000000..cfe92e7
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+  midiscorewalker.cc -- implement Midi_score_walker
+
+  source file of the LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>, Jan Nieuwehuizen <jan@digicash.com> 
+*/
+#include "plist.hh"
+#include "debug.hh"
+#include "score.hh"
+#include "staffwalker.hh"
+#include "staff.hh"
+#include "sccol.hh"
+#include "midistream.hh"
+#include "midiscorewalker.hh"
+
+Midi_score_walker::Midi_score_walker( Score* score_l, Midi_stream* midi_stream_l )
+    :Score_walker( score_l )
+{
+       midi_stream_l_ = midi_stream_l;
+}
+
+Midi_score_walker::~Midi_score_walker()
+{
+}
+
+void
+Midi_score_walker::process()
+{
+}
+
diff --git a/src/midiwalker.cc b/src/midiwalker.cc
new file mode 100644 (file)
index 0000000..5072fb6
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+  midiwalker.cc -- implement Midi_walker
+
+  source file of the LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>, Jan Nieuwenhuizen <jan@digicash.com>
+*/
+
+#include "misc.hh"
+#include "musicalrequest.hh"
+#include "voice.hh"
+#include "pscore.hh"
+#include "staff.hh"
+#include "midicolumn.hh"
+#include "midistaff.hh"
+#include "midiwalker.hh"
+#include "debug.hh"
+#include "midiitem.hh"
+#include "midistream.hh"
+
+Midi_walker::Midi_walker( Midi_staff* mstaff_l )
+    : Staff_walker( mstaff_l, 0 )
+{
+}
+
+Midi_column*
+Midi_walker::mcol_l()
+{
+       return (Midi_column*) *(*this);
+}
+
+Midi_staff*
+Midi_walker::mstaff_l()
+{
+       return (Midi_staff*)staff_l_;
+}
+
+void
+Midi_walker::process_requests()
+{
+       allow_break();
+}
+