4 #define VIRTUALCONS(T,R) R *T::clone() const { return new T(*this); } struct T
5 #define RCONS(T) VIRTUALCONS(T, Request)
14 Request::print() const
17 mtor << "Req{ unknown }\n";
21 Request::Request(Voice_element*v)
26 Note_req::Note_req(Voice_element*v)
36 Note_req::height() const
44 /****************************************************************/
45 Rhythmic_req::Rhythmic_req(Voice_element*v)
52 Rhythmic_req::print() const
54 mtor << "rhythmic: " << balltype ;
61 Note_req::print() const
63 mtor << "note: " << name << " oct: "<< octave;
64 Rhythmic_req::print();
73 Rest_req::print() const
76 Rhythmic_req::print();
80 wholes(int dur, int dots)
82 Real f = 1.0/Real(dur);
93 Rhythmic_req::duration() const {
94 return wholes( balltype,dots);