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) 1999--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1999--2019 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 set_beaming () for each of its stems. | 60 set_beaming () for each of its stems. |
61 */ | 61 */ |
62 class Beaming_pattern | 62 class Beaming_pattern |
63 { | 63 { |
64 public: | 64 public: |
65 Beaming_pattern (); | 65 Beaming_pattern (); |
66 | 66 |
67 void beamify (Beaming_options const &); | 67 void beamify (Beaming_options const &); |
68 void de_grace (); | 68 void de_grace (); |
69 void add_stem (Moment d, int beams, bool invisible, Rational factor, bool tupl
et_starrt); | 69 void add_stem (Moment d, int beams, bool invisible, Rational factor, bool tupl
et_starrt); |
70 int beamlet_count (int idx, Direction d) const; | 70 int beamlet_count (vsize idx, Direction d) const; |
71 bool invisibility (int idx) const; | 71 bool invisibility (vsize idx) const; |
72 Rational factor (int idx) const; | 72 Rational factor (vsize idx) const; |
73 bool tuplet_start (int idx) const; | 73 bool tuplet_start (vsize idx) const; |
74 Moment start_moment (int idx) const; | 74 Moment start_moment (vsize idx) const; |
75 Moment end_moment (int idx) const; | 75 Moment end_moment (vsize idx) const; |
76 Beaming_pattern *split_pattern (int idx); | 76 Beaming_pattern *split_pattern (vsize idx); |
77 | 77 |
78 private: | 78 private: |
79 vector<Beam_rhythmic_element> infos_; | 79 vector<Beam_rhythmic_element> infos_; |
80 Direction flag_direction (Beaming_options const &, vsize) const; | 80 Direction flag_direction (Beaming_options const &, vsize) const; |
81 void find_rhythmic_importance (Beaming_options const &); | 81 void find_rhythmic_importance (Beaming_options const &); |
82 void unbeam_invisible_stems (); | 82 void unbeam_invisible_stems (); |
83 Moment remaining_length (int idx) const; | 83 Moment remaining_length (vsize idx) const; |
84 int beam_count_for_rhythmic_position (int idx) const; | 84 int beam_count_for_rhythmic_position (vsize idx) const; |
85 int beam_count_for_length (Moment len) const; | 85 int beam_count_for_length (Moment len) const; |
86 }; | 86 }; |
87 | 87 |
88 #endif /* BEAMING_PATTERN_HH */ | 88 #endif /* BEAMING_PATTERN_HH */ |
OLD | NEW |