]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/auto-beam-engraver.hh
release: 1.1.52
[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   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   Moment last_add_mom_;
42   Moment extend_mom_;
43   
44   // We act as if beam were created, and start a grouping anyway.
45   Rhythmic_grouping*grouping_p_;
46   Rhythmic_grouping*finished_grouping_p_;
47 };
48
49 #endif /* AUTO_BEAM_ENGRAVER_HH */
50