From: fred Date: Sun, 24 Mar 2002 19:57:33 +0000 (+0000) Subject: lilypond-0.1.14 X-Git-Tag: release/1.5.59~3899 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e38a9c624d8050f5e8e4e16f6c0196614a6f7ec8;p=lilypond.git lilypond-0.1.14 --- diff --git a/lily/beam-grav.cc b/lily/beam-grav.cc index bfaf3e12ac..68d798ae25 100644 --- a/lily/beam-grav.cc +++ b/lily/beam-grav.cc @@ -116,11 +116,7 @@ Beam_engraver::acknowledge_element (Score_elem_info i) */ 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); } diff --git a/lily/include/lookup.hh b/lily/include/lookup.hh index c9af80091c..638e8c3bdf 100644 --- a/lily/include/lookup.hh +++ b/lily/include/lookup.hh @@ -43,7 +43,7 @@ struct Lookup { 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; diff --git a/lily/include/stem.hh b/lily/include/stem.hh index a492a3d4d8..f7240397b3 100644 --- a/lily/include/stem.hh +++ b/lily/include/stem.hh @@ -33,7 +33,6 @@ class Stem : public Item { Real stem_bottom_f_, stem_top_f_; - /// needed for determining direction/length int staff_size_i_; @@ -55,7 +54,10 @@ public: /// 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_; /** @@ -79,7 +81,9 @@ public: DECLARE_MY_RUNTIME_TYPEINFO; Real hpos_f() const; - + + int type_i () const; + void do_print() const; void set_stemend (Real); Direction get_default_dir(); diff --git a/lily/lookup.cc b/lily/lookup.cc index 480abb5f9a..119c52e449 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -143,9 +143,10 @@ Lookup::dots (int j) const } 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