Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(597)

Delta Between Two Patch Sets: lily/hyphen-engraver.cc

Issue 565750043: Added vowel transitions for lyrics
Left Patch Set: Corrected VowelTransitionEvent description Created 5 years, 1 month ago
Right Patch Set: Apologies for the noise for the last two patch sets. Created 5 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « input/regression/vowel-transition-right-margin.ly ('k') | lily/include/vowel-transition.hh » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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--2020 Glen Prideaux <glenprideaux@iname.com>, 4 Copyright (C) 1999--2020 Glen Prideaux <glenprideaux@iname.com>,
5 Han-Wen Nienhuys <hanwen@xs4all.nl>, 5 Han-Wen Nienhuys <hanwen@xs4all.nl>,
6 Jan Nieuwenhuizen <janneke@gnu.org> 6 Jan Nieuwenhuizen <janneke@gnu.org>
7 7
8 LilyPond is free software: you can redistribute it and/or modify 8 LilyPond is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or 10 the Free Software Foundation, either version 3 of the License, or
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 finished_hyphen_ = 0; 128 finished_hyphen_ = 0;
129 } 129 }
130 } 130 }
131 131
132 void 132 void
133 Hyphen_engraver::process_music () 133 Hyphen_engraver::process_music ()
134 { 134 {
135 if (ev_) 135 if (ev_)
136 { 136 {
137 if (ev_->in_event_class("vowel-transition-event")) 137 if (ev_->in_event_class("vowel-transition-event"))
138 hyphen_ = make_spanner ("LyricTransition", ev_->self_scm ()); 138 hyphen_ = make_spanner ("VowelTransition", ev_->self_scm ());
139 else 139 else
140 hyphen_ = make_spanner ("LyricHyphen", ev_->self_scm ()); 140 hyphen_ = make_spanner ("LyricHyphen", ev_->self_scm ());
141 } 141 }
142 } 142 }
143 143
144 void 144 void
145 Hyphen_engraver::stop_translation_timestep () 145 Hyphen_engraver::stop_translation_timestep ()
146 { 146 {
147 if (finished_hyphen_ && finished_hyphen_->get_bound (RIGHT)) 147 if (finished_hyphen_ && finished_hyphen_->get_bound (RIGHT))
148 { 148 {
(...skipping 11 matching lines...) Expand all
160 if (hyphen_) 160 if (hyphen_)
161 { 161 {
162 finished_hyphen_ = hyphen_; 162 finished_hyphen_ = hyphen_;
163 finished_ev_ = ev_; 163 finished_ev_ = ev_;
164 } 164 }
165 165
166 hyphen_ = 0; 166 hyphen_ = 0;
167 ev_ = 0; 167 ev_ = 0;
168 } 168 }
169 169
170
171 void 170 void
172 Hyphen_engraver::boot () 171 Hyphen_engraver::boot ()
173 { 172 {
174 ADD_LISTENER (Hyphen_engraver, hyphen); 173 ADD_LISTENER (Hyphen_engraver, hyphen);
175 ADD_LISTENER (Hyphen_engraver, vowel_transition); 174 ADD_LISTENER (Hyphen_engraver, vowel_transition);
176 ADD_ACKNOWLEDGER (Hyphen_engraver, lyric_syllable); 175 ADD_ACKNOWLEDGER (Hyphen_engraver, lyric_syllable);
177 } 176 }
178 177
179 ADD_TRANSLATOR (Hyphen_engraver, 178 ADD_TRANSLATOR (Hyphen_engraver,
180 /* doc */ 179 /* doc */
181 "Create lyric hyphens, vowel transitions and distance constraint s between words.", 180 "Create lyric hyphens, vowel transitions and distance constraint s between words.",
182 181
183 /* create */ 182 /* create */
184 "LyricHyphen " 183 "LyricHyphen "
185 "LyricSpace " 184 "LyricSpace "
186 "LyricTransition ", 185 "VowelTransition ",
187 186
188 /* read */ 187 /* read */
189 "", 188 "",
190 189
191 /* write */ 190 /* write */
192 "" 191 ""
193 ); 192 );
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b