LEFT | RIGHT |
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) 2002--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 2002--2012 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 368 |
369 /* | 369 /* |
370 Add accs entries right-to-left. | 370 Add accs entries right-to-left. |
371 */ | 371 */ |
372 Interval width; | 372 Interval width; |
373 Real last_offset = 0.0; | 373 Real last_offset = 0.0; |
374 for (vsize i = apes.size (); i-- > 0;) | 374 for (vsize i = apes.size (); i-- > 0;) |
375 { | 375 { |
376 Accidental_placement_entry *ape = apes[i]; | 376 Accidental_placement_entry *ape = apes[i]; |
377 | 377 |
378 Real offset = -ape->right_skyline_.distance (left_skyline, 0.0, 0.0); | 378 Real offset = -ape->right_skyline_.distance (left_skyline); |
379 if (isinf (offset)) | 379 if (isinf (offset)) |
380 offset = last_offset; | 380 offset = last_offset; |
381 else | 381 else |
382 offset -= padding; | 382 offset -= padding; |
383 | 383 |
384 Skyline new_left_skyline = ape->left_skyline_; | 384 Skyline new_left_skyline = ape->left_skyline_; |
385 new_left_skyline.raise (offset); | 385 new_left_skyline.raise (offset); |
386 new_left_skyline.merge (left_skyline); | 386 new_left_skyline.merge (left_skyline); |
387 left_skyline = new_left_skyline; | 387 left_skyline = new_left_skyline; |
388 | 388 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 "Resolve accidental collisions.", | 482 "Resolve accidental collisions.", |
483 | 483 |
484 /* properties */ | 484 /* properties */ |
485 "accidental-grobs " | 485 "accidental-grobs " |
486 "direction " | 486 "direction " |
487 "padding " | 487 "padding " |
488 "positioning-done " | 488 "positioning-done " |
489 "right-padding " | 489 "right-padding " |
490 "script-priority " | 490 "script-priority " |
491 ); | 491 ); |
LEFT | RIGHT |