OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1999--2015 Jan Nieuwenhuizen <janneke@gnu.org> | 4 Copyright (C) 1999--2015 Jan Nieuwenhuizen <janneke@gnu.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 TRANSLATOR_DECLARATIONS (Auto_beam_engraver); | 38 TRANSLATOR_DECLARATIONS (Auto_beam_engraver); |
39 | 39 |
40 protected: | 40 protected: |
41 void stop_translation_timestep (); | 41 void stop_translation_timestep (); |
42 void process_acknowledged (); | 42 void process_acknowledged (); |
43 | 43 |
44 virtual void process_music (); | 44 virtual void process_music (); |
45 virtual void finalize (); | 45 virtual void finalize (); |
46 virtual void derived_mark () const; | 46 virtual void derived_mark () const; |
47 | 47 |
48 DECLARE_ACKNOWLEDGER (rest); | 48 void acknowledge_rest (Grob_info); |
49 DECLARE_ACKNOWLEDGER (beam); | 49 void acknowledge_beam (Grob_info); |
50 DECLARE_ACKNOWLEDGER (bar_line); | 50 void acknowledge_bar_line (Grob_info); |
51 DECLARE_ACKNOWLEDGER (breathing_sign); | 51 void acknowledge_breathing_sign (Grob_info); |
52 DECLARE_ACKNOWLEDGER (stem); | 52 void acknowledge_stem (Grob_info); |
53 DECLARE_TRANSLATOR_LISTENER (beam_forbid); | 53 void listen_beam_forbid (Stream_event *); |
54 | 54 |
55 private: | 55 private: |
56 virtual bool test_moment (Direction, Moment, Moment); | 56 virtual bool test_moment (Direction, Moment, Moment); |
57 void consider_begin (Moment, Moment); | 57 void consider_begin (Moment, Moment); |
58 void consider_end (Moment, Moment); | 58 void consider_end (Moment, Moment); |
59 Spanner *create_beam (); | 59 Spanner *create_beam (); |
60 void begin_beam (); | 60 void begin_beam (); |
61 void end_beam (); | 61 void end_beam (); |
62 void junk_beam (); | 62 void junk_beam (); |
63 virtual bool is_same_grace_state (Moment, Moment); | 63 virtual bool is_same_grace_state (Moment, Moment); |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 "subdivideBeams ", | 573 "subdivideBeams ", |
574 | 574 |
575 /* write */ | 575 /* write */ |
576 "" | 576 "" |
577 ); | 577 ); |
578 | 578 |
579 class Grace_auto_beam_engraver : public Auto_beam_engraver | 579 class Grace_auto_beam_engraver : public Auto_beam_engraver |
580 { | 580 { |
581 TRANSLATOR_DECLARATIONS (Grace_auto_beam_engraver); | 581 TRANSLATOR_DECLARATIONS (Grace_auto_beam_engraver); |
582 TRANSLATOR_INHERIT (Auto_beam_engraver) | 582 TRANSLATOR_INHERIT (Auto_beam_engraver) |
583 DECLARE_TRANSLATOR_LISTENER (beam_forbid); | 583 void listen_beam_forbid (Stream_event *); |
584 | 584 |
585 private: | 585 private: |
586 Moment last_grace_start_; // Full starting time of last grace group | 586 Moment last_grace_start_; // Full starting time of last grace group |
587 Moment last_grace_position_; // Measure position of same | 587 Moment last_grace_position_; // Measure position of same |
588 virtual void process_music (); | 588 virtual void process_music (); |
589 virtual bool is_same_grace_state (Moment, Moment); | 589 virtual bool is_same_grace_state (Moment, Moment); |
590 virtual bool test_moment (Direction, Moment, Moment); | 590 virtual bool test_moment (Direction, Moment, Moment); |
591 }; | 591 }; |
592 | 592 |
593 Grace_auto_beam_engraver::Grace_auto_beam_engraver () | 593 Grace_auto_beam_engraver::Grace_auto_beam_engraver () |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 | 662 |
663 /* create */ | 663 /* create */ |
664 "Beam ", | 664 "Beam ", |
665 | 665 |
666 /* read */ | 666 /* read */ |
667 "autoBeaming ", | 667 "autoBeaming ", |
668 | 668 |
669 /* write */ | 669 /* write */ |
670 "" | 670 "" |
671 ); | 671 ); |
OLD | NEW |