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) 1996--2011 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1996--2011 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 static void add_stem (Grob *, Grob *); | 61 static void add_stem (Grob *, Grob *); |
62 static bool is_cross_staff (Grob *); | 62 static bool is_cross_staff (Grob *); |
63 static bool is_knee (Grob *); | 63 static bool is_knee (Grob *); |
64 static void set_beaming (Grob *, Beaming_pattern const *); | 64 static void set_beaming (Grob *, Beaming_pattern const *); |
65 static void set_stemlens (Grob *); | 65 static void set_stemlens (Grob *); |
66 static int get_beam_count (Grob *me); | 66 static int get_beam_count (Grob *me); |
67 static Real get_beam_translation (Grob *me); | 67 static Real get_beam_translation (Grob *me); |
68 static Real get_beam_thickness (Grob *me); | 68 static Real get_beam_thickness (Grob *me); |
69 static void connect_beams (Grob *me); | 69 static void connect_beams (Grob *me); |
70 static vector<Beam_segment> get_beam_segments (Grob *me_grob, Grob **common); | 70 static vector<Beam_segment> get_beam_segments (Grob *me_grob, Grob **common); |
71 static Interval no_visible_stem_positions (Grob *me, Interval default_value); | |
72 | 71 |
73 DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM prev_off))
; | 72 DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM prev_off))
; |
74 DECLARE_SCHEME_CALLBACK (pure_rest_collision_callback, (SCM element, SCM prev_
off, SCM, SCM)); | 73 DECLARE_SCHEME_CALLBACK (pure_rest_collision_callback, (SCM element, SCM prev_
off, SCM, SCM)); |
75 DECLARE_SCHEME_CALLBACK (print, (SCM)); | 74 DECLARE_SCHEME_CALLBACK (print, (SCM)); |
76 DECLARE_SCHEME_CALLBACK (calc_beaming, (SCM)); | 75 DECLARE_SCHEME_CALLBACK (calc_beaming, (SCM)); |
77 DECLARE_SCHEME_CALLBACK (calc_stem_shorten, (SCM)); | 76 DECLARE_SCHEME_CALLBACK (calc_stem_shorten, (SCM)); |
78 DECLARE_SCHEME_CALLBACK (calc_direction, (SCM)); | 77 DECLARE_SCHEME_CALLBACK (calc_direction, (SCM)); |
79 DECLARE_SCHEME_CALLBACK (calc_positions, (SCM)); | 78 DECLARE_SCHEME_CALLBACK (calc_positions, (SCM)); |
80 DECLARE_SCHEME_CALLBACK (calc_least_squares_positions, (SCM, SCM)); | |
81 DECLARE_SCHEME_CALLBACK (calc_normal_stems, (SCM)); | 79 DECLARE_SCHEME_CALLBACK (calc_normal_stems, (SCM)); |
82 DECLARE_SCHEME_CALLBACK (calc_concaveness, (SCM)); | 80 DECLARE_SCHEME_CALLBACK (calc_concaveness, (SCM)); |
83 DECLARE_SCHEME_CALLBACK (set_stem_lengths, (SCM)); | 81 DECLARE_SCHEME_CALLBACK (set_stem_lengths, (SCM)); |
84 DECLARE_SCHEME_CALLBACK (calc_cross_staff, (SCM)); | 82 DECLARE_SCHEME_CALLBACK (calc_cross_staff, (SCM)); |
85 | 83 |
86 /* position callbacks */ | 84 /* position callbacks */ |
87 DECLARE_SCHEME_CALLBACK (shift_region_to_valid, (SCM, SCM)); | 85 DECLARE_SCHEME_CALLBACK (quanting, (SCM)); |
88 DECLARE_SCHEME_CALLBACK (slope_damping, (SCM, SCM)); | |
89 DECLARE_SCHEME_CALLBACK (quanting, (SCM, SCM)); | |
90 | 86 |
91 static int get_direction_beam_count (Grob *me, Direction d); | 87 static int get_direction_beam_count (Grob *me, Direction d); |
92 | 88 |
93 private: | 89 private: |
94 friend class Beam_scoring_problem; | 90 friend class Beam_scoring_problem; |
95 | 91 |
96 static Direction get_default_dir (Grob *); | 92 static Direction get_default_dir (Grob *); |
97 static void set_stem_directions (Grob *, Direction); | 93 static void set_stem_directions (Grob *, Direction); |
98 static void consider_auto_knees (Grob *); | 94 static void consider_auto_knees (Grob *); |
99 static void set_stem_shorten (Grob *); | 95 static void set_stem_shorten (Grob *); |
100 static int forced_stem_count (Grob *); | 96 static int forced_stem_count (Grob *); |
101 static Real calc_stem_y (Grob *, Grob *s, Grob **c, | 97 static Real calc_stem_y (Grob *, Grob *s, Grob **c, |
102 Real, Real, Direction, | 98 Real, Real, Direction, |
103 Drul_array<Real> pos, bool french); | 99 Drul_array<Real> pos, bool french); |
104 }; | 100 }; |
105 | 101 |
106 #endif /* BEAM_HH */ | 102 #endif /* BEAM_HH */ |
107 | 103 |
OLD | NEW |