From: Han-Wen Nienhuys & Jan Nieuwenhuizen Date: Thu, 20 Feb 1997 23:15:12 +0000 (+0100) Subject: partial: 0.0.33.hanjan X-Git-Tag: release/0.0.33~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3424c4914eb65244cc707b201f31b5c89631daf8;p=lilypond.git partial: 0.0.33.hanjan --- diff --git a/hdr/midiscorewalker.hh b/hdr/midiscorewalker.hh new file mode 100644 index 0000000000..7ecce2a9ea --- /dev/null +++ b/hdr/midiscorewalker.hh @@ -0,0 +1,28 @@ +// +// midiscorewalker.hh -- declare Midi_score_walker +// +// (c) 1996,97 Han-Wen Nienhuys, Jan Nieuwenhuizen +// + +#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 index 0000000000..e97c59864f --- /dev/null +++ b/hdr/midiwalker.hh @@ -0,0 +1,28 @@ +// +// midiwalker.hh -- declare Midi_walker +// +// (c) 1996,97 Han-Wen Nienhuys, Jan Nieuwenhuizen +// + +#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 index 0000000000..cfe92e7913 --- /dev/null +++ b/src/midiscorewalker.cc @@ -0,0 +1,31 @@ +/* + midiscorewalker.cc -- implement Midi_score_walker + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys , Jan Nieuwehuizen +*/ +#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 index 0000000000..5072fb6320 --- /dev/null +++ b/src/midiwalker.cc @@ -0,0 +1,43 @@ +/* + midiwalker.cc -- implement Midi_walker + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys , Jan Nieuwenhuizen +*/ + +#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(); +} +