#define MUSICALREQUESTS_HH
#include "request.hh"
+#include "duration.hh"
/**
This request is used only a base class.
*/
struct Rhythmic_req : virtual Musical_req {
- int balltype;
- int dots;
- Moment plet_factor;
+ Duration duration_;
+
/* *************** */
+ void set_duration(Duration);
static int compare(const Rhythmic_req &, const Rhythmic_req &);
virtual Moment duration() const;
Rhythmic_req();
- Rhythmic_req(int,int);
REQUESTMETHODS(Rhythmic_req, rhythmic);
};
struct Stem_req : Rhythmic_req {
/// preferred direction for the stem
int dir_i_;
- Stem_req(int s, int dots);
+ Stem_req();
REQUESTMETHODS(Stem_req,stem);
};
{
voice_l_ = 0;
duration = 0;
- defined_ch_c_l_ = 0;
+ defined_ch_C_ = 0;
}
Voice_element::Voice_element(Voice_element const&src)
{
- defined_ch_c_l_ = src.defined_ch_c_l_;
+ defined_ch_C_ = src.defined_ch_C_;
voice_l_=0;
for (iter_top(src.reqs, i); i.ok(); i++)
for ( PCursor<Request*> i( reqs.top() ); i.ok(); i++ ) {
if (i->beam() && i->beam()->spantype == Span_req::START )
i->beam()->nplet = den_i;
- if (i->rhythmic())
- i->rhythmic()->plet_factor = Moment(num_i, den_i);
- if (i->stem())
- i->stem()->plet_factor = Moment(num_i, den_i);
+ if (i->rhythmic()) {
+ i->rhythmic()->duration_.plet_.type_i_ = den_i;
+ i->rhythmic()->duration_.plet_.iso_i_ = num_i;
+
+ }
}
}