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) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
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 19 matching lines...) Expand all Loading... |
30 #include "translator.icc" | 30 #include "translator.icc" |
31 | 31 |
32 class Rest_engraver : public Engraver | 32 class Rest_engraver : public Engraver |
33 { | 33 { |
34 Stream_event *rest_event_; | 34 Stream_event *rest_event_; |
35 Item *dot_; | 35 Item *dot_; |
36 Grob *rest_; | 36 Grob *rest_; |
37 protected: | 37 protected: |
38 void start_translation_timestep (); | 38 void start_translation_timestep (); |
39 void process_music (); | 39 void process_music (); |
40 DECLARE_TRANSLATOR_LISTENER (rest); | 40 void listen_rest (Stream_event *); |
41 public: | 41 public: |
42 TRANSLATOR_DECLARATIONS (Rest_engraver); | 42 TRANSLATOR_DECLARATIONS (Rest_engraver); |
43 }; | 43 }; |
44 | 44 |
45 /* | 45 /* |
46 Should merge with Note_head_engraver | 46 Should merge with Note_head_engraver |
47 */ | 47 */ |
48 Rest_engraver::Rest_engraver () | 48 Rest_engraver::Rest_engraver () |
49 { | 49 { |
50 rest_event_ = 0; | 50 rest_event_ = 0; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 /* create */ | 99 /* create */ |
100 "Rest ", | 100 "Rest ", |
101 | 101 |
102 /* read */ | 102 /* read */ |
103 "middleCPosition ", | 103 "middleCPosition ", |
104 | 104 |
105 /* write */ | 105 /* write */ |
106 "" | 106 "" |
107 ); | 107 ); |
OLD | NEW |