]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/auto-beam-engraver.hh
ce8655dd24f4415ded5f53c0af749b10ae8756d0
[lilypond.git] / lily / include / auto-beam-engraver.hh
1 /*   
2   auto-beam-engraver.hh -- declare Auto_beam_engraver
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999 Jan Nieuwenhuizen <janneke@gnu.org>
7   
8  */
9
10 #ifndef AUTO_BEAM_ENGRAVER_HH
11 #define AUTO_BEAM_ENGRAVER_HH
12
13 #include "engraver.hh"
14
15 class Auto_beam_engraver : public Engraver
16 {
17 public:
18   Auto_beam_engraver ();
19   VIRTUAL_COPY_CONS (Translator);
20
21 protected:
22   virtual void do_pre_move_processing ();
23   virtual void do_post_move_processing ();
24   virtual void do_removal_processing ();
25   virtual void acknowledge_element (Score_element_info);
26   virtual void do_process_requests ();
27   virtual void process_acknowledged ();
28   virtual void do_creation_processing ();
29 private:
30   void begin_beam ();
31   void consider_end_and_begin ();
32   Beam* create_beam_p ();
33   void end_beam ();
34   void junk_beam ();
35   bool same_grace_state_b (Score_element* e);
36   void typeset_beam ();
37
38   Moment shortest_mom_;
39   Beam *finished_beam_p_;
40   Array<Stem*>* stem_l_arr_p_;
41   
42   Moment last_add_mom_;
43   Moment extend_mom_;
44
45
46   Moment beam_start_moment_;
47   Moment beam_start_location_;
48   
49   Timing_translator * timer_l_;
50   // We act as if beam were created, and start a grouping anyway.
51   Beaming_info_list*grouping_p_;  
52   Beaming_info_list*finished_grouping_p_;
53 };
54
55 #endif /* AUTO_BEAM_ENGRAVER_HH */
56