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--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2019 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 | 915 |
916 vector<Interval> allowed_regions | 916 vector<Interval> allowed_regions |
917 = Interval_set::interval_union (forbidden_intervals).complement ().intervals
(); | 917 = Interval_set::interval_union (forbidden_intervals).complement ().intervals
(); |
918 for (vsize i = allowed_regions.size () - 1; i != VPOS; i--) | 918 for (vsize i = allowed_regions.size () - 1; i != VPOS; i--) |
919 { | 919 { |
920 Interval gap = allowed_regions[i]; | 920 Interval gap = allowed_regions[i]; |
921 | 921 |
922 /* | 922 /* |
923 the outer gaps are not knees. | 923 the outer gaps are not knees. |
924 */ | 924 */ |
925 if (isinf (gap[LEFT]) || isinf (gap[RIGHT])) | 925 if (std::isinf (gap[LEFT]) || std::isinf (gap[RIGHT])) |
926 continue; | 926 continue; |
927 | 927 |
928 if (gap.length () >= max_gap_len) | 928 if (gap.length () >= max_gap_len) |
929 { | 929 { |
930 max_gap_len = gap.length (); | 930 max_gap_len = gap.length (); |
931 max_gap = gap; | 931 max_gap = gap; |
932 } | 932 } |
933 } | 933 } |
934 | 934 |
935 Real beam_translation = get_beam_translation (me); | 935 Real beam_translation = get_beam_translation (me); |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 "least-squares-dy " | 1524 "least-squares-dy " |
1525 "neutral-direction " | 1525 "neutral-direction " |
1526 "normal-stems " | 1526 "normal-stems " |
1527 "positions " | 1527 "positions " |
1528 "quantized-positions " | 1528 "quantized-positions " |
1529 "shorten " | 1529 "shorten " |
1530 "skip-quanting " | 1530 "skip-quanting " |
1531 "stems " | 1531 "stems " |
1532 "X-positions " | 1532 "X-positions " |
1533 ); | 1533 ); |
OLD | NEW |