From: fred Date: Mon, 17 Feb 1997 19:25:51 +0000 (+0000) Subject: lilypond-0.0.32 X-Git-Tag: release/1.5.59~6330 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=59729fa802cd7496c5464f25c0d79cad8fb800d1;p=lilypond.git lilypond-0.0.32 --- diff --git a/src/commandrequest.cc b/src/commandrequest.cc new file mode 100644 index 0000000000..065f69ae53 --- /dev/null +++ b/src/commandrequest.cc @@ -0,0 +1,141 @@ +/* + commandrequest.cc -- implement Nonmusical reqs + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + +#include "commandrequest.hh" +#include "debug.hh" +#include "musicalrequest.hh" + + +void +Cadenza_req::do_print()const +{ + mtor << on_b; +} + +void +Bar_req::do_print() const +{ + mtor << type; +} + +Partial_measure_req::Partial_measure_req(Moment m) +{ + duration_ =m; +} +/* *************** */ +Cadenza_req::Cadenza_req(bool b) +{ + on_b =b; +} +/* *************** */ + +Meter_change_req::Meter_change_req() +{ + beats_i_ = 0; + one_beat_i_ =0; +} +void +Meter_change_req::set(int b,int o) +{ + beats_i_=b; + one_beat_i_=o; +} + +void +Timing_req::do_print()const{} + +void +Nonmusical_req::do_print()const{} +/* *************** */ +void +Barcheck_req::do_print() const{} + +Bar_req::Bar_req(String s) +{ + type = s; +} +/* *************** */ +void +Clef_change_req::do_print() const +{ + mtor << clef_str_ ; +} + +Clef_change_req::Clef_change_req(String s) +{ + clef_str_ = s; +} +/* *************** */ +void +Group_feature_req::do_print() const +{ + mtor << "stemdir " << stemdir_i_; +} + +Group_feature_req::Group_feature_req() +{ + stemdir_i_ = 0; +} + +void +Group_change_req::do_print()const +{ + mtor << "id : " << newgroup_str_; +} +/* *************** */ +void +Terminate_voice_req::do_print()const +{ +} + +/* *************** */ +void +Partial_measure_req::do_print() const +{ + mtor << duration_; +} + +void +Meter_change_req::do_print() const +{ + mtor << beats_i_ << "*" << one_beat_i_; +} + +/* *************** */ + +void +Measure_grouping_req::do_print() const +{ + for (int i=0; i < elt_length_arr_.size(); i++) { + mtor << beat_i_arr_[i] <<"*" << elt_length_arr_[i]<<" "; + } +} +/* *************** */ +void +Key_change_req::do_print() const +{ + for (int i=0; i < melodic_p_arr_.size(); i++) { + melodic_p_arr_[i]->print(); + } +} + +Key_change_req::Key_change_req() +{ +} +Key_change_req::Key_change_req(Key_change_req const&c) +{ + for (int i=0; i < c.melodic_p_arr_.size(); i++) { + melodic_p_arr_.push( c.melodic_p_arr_[i]->clone()->melodic() ); + } +} + +Key_change_req::~Key_change_req() +{ + for (int i=0; i < melodic_p_arr_.size(); i++) + delete melodic_p_arr_[i]; +}