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--2020 Jan Nieuwenhuizen <janneke@gnu.org> | 4 Copyright (C) 1997--2020 Jan Nieuwenhuizen <janneke@gnu.org> |
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 if (!me->is_live ()) | 81 if (!me->is_live ()) |
82 return SCM_EOL; | 82 return SCM_EOL; |
83 | 83 |
84 Drul_array<Real> edge_height = robust_scm2interval (me->get_property ("edge-he
ight"), | 84 Drul_array<Real> edge_height = robust_scm2interval (me->get_property ("edge-he
ight"), |
85 Interval (1.0, 1.0)); | 85 Interval (1.0, 1.0)); |
86 Drul_array<Real> flare = robust_scm2interval (me->get_property ("bracket-flare
"), | 86 Drul_array<Real> flare = robust_scm2interval (me->get_property ("bracket-flare
"), |
87 Interval (0, 0)); | 87 Interval (0, 0)); |
88 Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pai
r"), | 88 Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pai
r"), |
89 Interval (0, 0)); | 89 Interval (0, 0)); |
90 | 90 |
91 scale_drul (&edge_height, - Real (get_grob_direction (me))); | 91 scale_drul (&edge_height, -static_cast<Real> (get_grob_direction (me))); |
92 | 92 |
93 Interval empty; | 93 Interval empty; |
94 Offset start; | 94 Offset start; |
95 start[X_AXIS] = me->spanner_length () - left; | 95 start[X_AXIS] = me->spanner_length () - left; |
96 | 96 |
97 Stencil total | 97 Stencil total |
98 = Bracket::make_bracket (me, Y_AXIS, start, edge_height, empty, | 98 = Bracket::make_bracket (me, Y_AXIS, start, edge_height, empty, |
99 flare, shorten); | 99 flare, shorten); |
100 | 100 |
101 if (!orig_span || broken_first_bracket) | 101 if (!orig_span || broken_first_bracket) |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 ADD_INTERFACE (Volta_bracket_interface, | 166 ADD_INTERFACE (Volta_bracket_interface, |
167 "Volta bracket with number.", | 167 "Volta bracket with number.", |
168 | 168 |
169 /* properties */ | 169 /* properties */ |
170 "bars " | 170 "bars " |
171 "dashed-edge " | 171 "dashed-edge " |
172 "height " | 172 "height " |
173 "shorten-pair " | 173 "shorten-pair " |
174 "thickness " | 174 "thickness " |
175 ); | 175 ); |
176 | |
OLD | NEW |