4 #include "scriptdef.hh"
7 #include "inputcommand.hh"
10 Stem_req::do_print() const
12 Rhythmic_req::do_print();
15 Stem_req::Stem_req(int s, int d)
22 Barcheck_req::do_print() const
32 Request::print() const
35 mtor << name() << " {";
42 Request::do_print() const
49 Span_req::do_print() const
60 Request::Request(Request const&)
65 Melodic_req::Melodic_req()
74 Melodic_req::do_print() const
76 mtor << "notename: " << notename << " oct: "<< octave;
80 Melodic_req::height() const
82 return notename + octave*7;
87 Rhythmic_req::compare(const Rhythmic_req &r1, const Rhythmic_req &r2)
89 return r1.duration() - r2.duration();
91 Rhythmic_req::Rhythmic_req(int b, int d)
98 Rhythmic_req::Rhythmic_req()
106 Rhythmic_req::do_print() const
108 mtor << "ball: " << balltype ;
113 mtor<<", plet factor"<<plet_factor<<"\n";
118 Rhythmic_req::duration() const {
119 return wholes(balltype,dots)*plet_factor;
123 Lyric_req::Lyric_req(Text_def* def_p)
126 def_p->align_i_ = 1; // raggedright
127 dir_i_ = -1; // lyrics below (invisible) staff
131 Lyric_req::do_print() const
133 Rhythmic_req::do_print();
134 Text_req::do_print();
138 Note_req::do_print() const
140 Melodic_req::do_print();
141 Rhythmic_req::do_print();
145 Rest_req::do_print() const
147 Rhythmic_req::do_print();
156 void Beam_req::do_print()const{}
158 void Slur_req::do_print()const{}
161 Span_req:: compare(const Span_req &r1, const Span_req &r2)
163 return r1.spantype - r2.spantype;
171 Script_req::Script_req(int d , Script_def*def)
177 Script_req::Script_req(Script_req const &s)
180 scriptdef = new Script_def(*s.scriptdef);
184 Script_req::do_print() const
186 mtor << " dir " << dir ;
191 Script_req::~Script_req()
197 Text_req::~Text_req()
203 Text_req::Text_req(Text_req const& src)
205 tdef_p_ = new Text_def(*src.tdef_p_);
209 Text_req::Text_req(int dir_i, Text_def* tdef_p)
216 Text_req::do_print() const
218 mtor << " dir " << dir_i_ ;
226 Mark_req::Mark_req(String s)
232 Mark_req::do_print()const
235 mtor<< " `" << mark_str_ << "\'\n";
239 Staff_command_req::Staff_command_req(Input_command * p)
243 Staff_command_req::~Staff_command_req()
247 Staff_command_req::Staff_command_req(Staff_command_req const&src)
249 com_p_ = new Input_command(*src.com_p_);
252 Staff_command_req::do_print()const