- }
-
- if (stem_req_l_) {
- stem_p_ = new Stem (8);
- if (current_grouping)
- current_grouping->add_child (
- get_staff_info().time_C_->whole_in_measure_,
- stem_req_l_->duration());
-
- stem_p_->flag_i_ = stem_req_l_->duration_.type_i_;
-
- if (beam_p_) {
- if (stem_req_l_->duration_.type_i_<= 4)
- stem_req_l_->warning ("stem doesn't fit in Beam");
- else
- beam_p_->add (stem_p_);
- stem_p_->print_flag_b_ = false;
- } else {
- stem_p_->print_flag_b_ = true;
+ }
+
+ if (stem_req_l_)
+ {
+ stem_p_ = new Stem (8);
+ if (current_grouping)
+ current_grouping->add_child (
+ get_staff_info().time_C_->whole_in_measure_,
+ stem_req_l_->duration());
+
+ stem_p_->flag_i_ = Duration_convert::type2_i
+ (stem_req_l_->duration_.durlog_i_); // should change rep. of flags too.
+
+ if (beam_p_)
+ {
+ if (stem_req_l_->duration_.durlog_i_<= 2)
+ stem_req_l_->warning ("stem doesn't fit in Beam");
+ else
+ beam_p_->add (stem_p_);
+ stem_p_->print_flag_b_ = false;
+ }
+ else
+ {
+ stem_p_->print_flag_b_ = true;