LEFT | RIGHT |
(no file at all) | |
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--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2019 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 - Stem::beam_end_corrective (stem); | 319 - Stem::beam_end_corrective (stem); |
320 | 320 |
321 if (!beam && Stem::duration_log (stem) >= 3) | 321 if (!beam && Stem::duration_log (stem) >= 3) |
322 { | 322 { |
323 end_y -= dir * (Stem::duration_log (stem) - 2) * beam_translation; | 323 end_y -= dir * (Stem::duration_log (stem) - 2) * beam_translation; |
324 if (dir == UP) | 324 if (dir == UP) |
325 end_y -= dir * beam_translation * 0.5; | 325 end_y -= dir * beam_translation * 0.5; |
326 } | 326 } |
327 | 327 |
328 bool whole_note = Stem::duration_log (stem) <= 0; | 328 bool whole_note = Stem::duration_log (stem) <= 0; |
329 if (whole_note || isinf(end_y)) | 329 if (whole_note || std::isinf(end_y)) |
330 { | 330 { |
331 /* we shouldn't position relative to the end of the stem since the stem | 331 /* we shouldn't position relative to the end of the stem since the stem |
332 is invisible */ | 332 is invisible */ |
333 Real ss = Staff_symbol_referencer::staff_space (me); | 333 Real ss = Staff_symbol_referencer::staff_space (me); |
334 vector<int> nhp = Stem::note_head_positions (stem); | 334 vector<int> nhp = Stem::note_head_positions (stem); |
335 if (nhp.empty ()) | 335 if (nhp.empty ()) |
336 { | 336 { |
337 me->warning ("stem tremolo has no note heads"); | 337 me->warning ("stem tremolo has no note heads"); |
338 end_y = 0.0; | 338 end_y = 0.0; |
339 } | 339 } |
(...skipping 24 matching lines...) Expand all Loading... |
364 /* properties */ | 364 /* properties */ |
365 "beam-thickness " | 365 "beam-thickness " |
366 "beam-width " | 366 "beam-width " |
367 "direction " | 367 "direction " |
368 "flag-count " | 368 "flag-count " |
369 "length-fraction " | 369 "length-fraction " |
370 "stem " | 370 "stem " |
371 "shape " | 371 "shape " |
372 "slope " | 372 "slope " |
373 ); | 373 ); |
LEFT | RIGHT |