*/
current_grouping_p_->add_child (get_staff_info().time_C_->whole_in_measure_,
rhythmic_req->duration ());
- /*
- TODO
- should change repr. of flags too.
- */
- s->flag_i_ = Duration_convert::type2_i (rhythmic_req->duration_.durlog_i_);
+ s->flag_i_ = rhythmic_req->duration_.durlog_i_;
beam_p_->add (s);
}
Symbol rule_symbol (Real height, Real width) const;
Symbol accidental (int) const;
Symbol ball (int) const;
- Symbol flag (int) const;
+ Symbol flag (int, Direction) const;
Symbol rest (int, bool outside) const;
Symbol clef (String) const;
Symbol bar (String, Real height) const;
Real stem_bottom_f_, stem_top_f_;
-
/// needed for determining direction/length
int staff_size_i_;
/// abbrev flag? + count
int abbrev_flag_i_;
- /// flagtype? 4 none, 8 8th flag, 0 = beam.
+ /// how many abbrev beam don't reach stem?
+ int beam_gap_i_;
+
+ /// log of the duration. Eg. 4 -> 16th note -> 2 flags
int flag_i_;
/**
DECLARE_MY_RUNTIME_TYPEINFO;
Real hpos_f() const;
-
+
+ int type_i () const;
+
void do_print() const;
void set_stemend (Real);
Direction get_default_dir();
}
Symbol
-Lookup::flag (int j) const
+Lookup::flag (int j, Direction d) const
{
- return (*symtables_)("flags")->lookup (j);
+ char c = (d == UP) ? 'u' : 'd';
+ return (*symtables_)("flags")->lookup (c + String (j));
}
Symbol