4 #define VIRTUALCONS(T,R) R *T::clone() const { return new T(*this); } struct T
5 #define RCONS(T) VIRTUALCONS(T, Request)
16 Request::print() const
19 mtor << "Req{ unknown }\n";
37 Note_req::height() const
45 Rhythmic_req::Rhythmic_req()
52 Rhythmic_req::print() const
54 mtor << "rhythmic: " << balltype ;
62 Note_req::print() const
64 mtor << "note: " << name << " oct: "<< octave;
65 Rhythmic_req::print();
69 Rest_req::print() const
72 Rhythmic_req::print();
76 wholes(int dur, int dots)
78 Real f = 1.0/Real(dur);
89 Rhythmic_req::duration() const {
90 return wholes( balltype,dots);