]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/auto-beam-engraver.hh
6f3eefff8cf12b3caa150daef667866baba4ec1d
[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
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   void typeset_beam ();
36
37   Moment shortest_mom_;
38   Beam *finished_beam_p_;
39   Array<Stem*>* stem_l_arr_p_;
40   Moment last_add_mom_;
41   Moment extend_mom_;
42   
43   // We act as if beam were created, and start a grouping anyway.
44   Rhythmic_grouping*grouping_p_;
45   Rhythmic_grouping*finished_grouping_p_;
46 };
47
48 #endif /* AUTO_BEAM_ENGRAVER_HH */
49