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) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2012 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 } | 881 } |
882 } | 882 } |
883 head_extents_array.push_back (head_extents); | 883 head_extents_array.push_back (head_extents); |
884 | 884 |
885 forbidden_intervals.push_back (head_extents); | 885 forbidden_intervals.push_back (head_extents); |
886 } | 886 } |
887 | 887 |
888 Interval max_gap; | 888 Interval max_gap; |
889 Real max_gap_len = 0.0; | 889 Real max_gap_len = 0.0; |
890 | 890 |
891 vector<Interval> allowed_regions = | 891 vector<Interval> allowed_regions |
892 Interval_set::interval_union (forbidden_intervals).complement ().intervals (
); | 892 = Interval_set::interval_union (forbidden_intervals).complement ().intervals
(); |
893 for (vsize i = allowed_regions.size () - 1; i != VPOS; i--) | 893 for (vsize i = allowed_regions.size () - 1; i != VPOS; i--) |
894 { | 894 { |
895 Interval gap = allowed_regions[i]; | 895 Interval gap = allowed_regions[i]; |
896 | 896 |
897 /* | 897 /* |
898 the outer gaps are not knees. | 898 the outer gaps are not knees. |
899 */ | 899 */ |
900 if (isinf (gap[LEFT]) || isinf (gap[RIGHT])) | 900 if (isinf (gap[LEFT]) || isinf (gap[RIGHT])) |
901 continue; | 901 continue; |
902 | 902 |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 "least-squares-dy " | 1501 "least-squares-dy " |
1502 "neutral-direction " | 1502 "neutral-direction " |
1503 "normal-stems " | 1503 "normal-stems " |
1504 "positions " | 1504 "positions " |
1505 "quantized-positions " | 1505 "quantized-positions " |
1506 "shorten " | 1506 "shorten " |
1507 "skip-quanting " | 1507 "skip-quanting " |
1508 "stems " | 1508 "stems " |
1509 "X-positions " | 1509 "X-positions " |
1510 ); | 1510 ); |
LEFT | RIGHT |