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
39 return name + octave*7;
42 Rhythmic_req::Rhythmic_req()
49 Rhythmic_req::print() const
51 mtor << "rhythmic: " << balltype ;
59 Note_req::print() const
61 mtor << "note: " << name << " oct: "<< octave;
62 Rhythmic_req::print();
66 Rest_req::print() const
69 Rhythmic_req::print();
73 wholes(int dur, int dots)
75 Real f = 1.0/Real(dur);
86 Rhythmic_req::duration() const {
87 return wholes( balltype,dots);