4 #include "scriptdef.hh"
7 #include "inputcommand.hh"
10 Stem_req::do_print() const
12 Rhythmic_req::do_print();
13 mtor << "dir : " << dir_i_;
16 Stem_req::Stem_req(int s, int d)
24 Barcheck_req::do_print() const
34 Request::print() const
37 mtor << name() << " {";
44 Request::do_print() const
51 Span_req::do_print() const
63 Request::Request(Request const&)
69 Melodic_req::Melodic_req()
78 Melodic_req::do_print() const
80 mtor << "notename: " << notename << " oct: "<< octave;
84 Melodic_req::height() const
86 return notename + octave*7;
91 Rhythmic_req::compare(const Rhythmic_req &r1, const Rhythmic_req &r2)
93 return r1.duration() - r2.duration();
95 Rhythmic_req::Rhythmic_req(int b, int d)
102 Rhythmic_req::Rhythmic_req()
110 Rhythmic_req::do_print() const
112 mtor << "ball: " << balltype ;
117 mtor<<", plet factor"<<plet_factor<<"\n";
122 Rhythmic_req::duration() const {
123 return wholes(balltype,dots)*plet_factor;
127 Lyric_req::Lyric_req(Text_def* def_p)
130 def_p->align_i_ = 1; // raggedright
131 dir_i_ = -1; // lyrics below (invisible) staff
135 Lyric_req::do_print() const
137 Rhythmic_req::do_print();
138 Text_req::do_print();
142 Note_req::do_print() const
144 Melodic_req::do_print();
145 Rhythmic_req::do_print();
149 Rest_req::do_print() const
151 Rhythmic_req::do_print();
160 void Beam_req::do_print()const{}
162 void Slur_req::do_print()const{}
165 Span_req:: compare(const Span_req &r1, const Span_req &r2)
167 return r1.spantype - r2.spantype;
176 Group_feature_req::do_print() const
178 mtor << "stemdir " << stemdir_i_;
180 Group_feature_req::Group_feature_req()
185 Group_change_req::do_print()const
187 mtor << "id : " << newgroup_str_;
190 Terminate_voice_req::do_print()const
194 Script_req::Script_req(int d , Script_def*def)
201 Script_req::compare(const Script_req &d1, const Script_req &d2)
203 return d1.dir_i_ == d2.dir_i_ &&
204 d1.scriptdef_p_->compare(*d2.scriptdef_p_);
207 Script_req::Script_req(Script_req const &s)
210 scriptdef_p_ = new Script_def(*s.scriptdef_p_);
214 Script_req::do_print() const
216 mtor << " dir " << dir_i_ ;
217 scriptdef_p_->print();
221 Script_req::~Script_req()
227 Text_req:: compare(const Text_req &r1, const Text_req &r2)
229 bool b1 = (r1.dir_i_ == r2.dir_i_);
230 bool b2 = (r1.tdef_p_ ->compare(*r2.tdef_p_));
233 Text_req::~Text_req()
239 Text_req::Text_req(Text_req const& src)
241 tdef_p_ = new Text_def(*src.tdef_p_);
245 Text_req::Text_req(int dir_i, Text_def* tdef_p)
252 Text_req::do_print() const
254 mtor << " dir " << dir_i_ ;
262 Mark_req::Mark_req(String s)
268 Mark_req::do_print()const
271 mtor<< " `" << mark_str_ << "\'\n";
275 Staff_command_req::Staff_command_req(Input_command * p)
279 Staff_command_req::~Staff_command_req()
283 Staff_command_req::Staff_command_req(Staff_command_req const&src)
285 com_p_ = new Input_command(*src.com_p_);
288 Staff_command_req::do_print()const