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 Jan Nieuwenhuizen <janneke@gnu.org> | 5 Jan Nieuwenhuizen <janneke@gnu.org> |
6 | 6 |
7 LilyPond is free software: you can redistribute it and/or modify | 7 LilyPond is free software: you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation, either version 3 of the License, or | 9 the Free Software Foundation, either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 /** | 30 /** |
31 Generate texts for lyric syllables. We only do one lyric at a time. | 31 Generate texts for lyric syllables. We only do one lyric at a time. |
32 Multiple copies of this engraver should be used to do multiple voices. | 32 Multiple copies of this engraver should be used to do multiple voices. |
33 */ | 33 */ |
34 class Lyric_engraver : public Engraver | 34 class Lyric_engraver : public Engraver |
35 { | 35 { |
36 protected: | 36 protected: |
37 void stop_translation_timestep (); | 37 void stop_translation_timestep (); |
38 void process_music (); | 38 void process_music (); |
39 DECLARE_TRANSLATOR_LISTENER (lyric); | 39 void listen_lyric (Stream_event *); |
40 | 40 |
41 public: | 41 public: |
42 TRANSLATOR_DECLARATIONS (Lyric_engraver); | 42 TRANSLATOR_DECLARATIONS (Lyric_engraver); |
43 | 43 |
44 private: | 44 private: |
45 Stream_event *event_; | 45 Stream_event *event_; |
46 Item *text_; | 46 Item *text_; |
47 Item *last_text_; | 47 Item *last_text_; |
48 | 48 |
49 Context *get_voice_context (); | 49 Context *get_voice_context (); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 "LyricText ", | 207 "LyricText ", |
208 | 208 |
209 /* read */ | 209 /* read */ |
210 "ignoreMelismata " | 210 "ignoreMelismata " |
211 "lyricMelismaAlignment " | 211 "lyricMelismaAlignment " |
212 "searchForVoice", | 212 "searchForVoice", |
213 | 213 |
214 /* write */ | 214 /* write */ |
215 "" | 215 "" |
216 ); | 216 ); |
OLD | NEW |