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) 1998--2019 Han-Wen Nienhuys <hanwen@xs4all.nl>, | 4 Copyright (C) 1998--2019 Han-Wen Nienhuys <hanwen@xs4all.nl>, |
5 Erik Sandberg <mandolaerik@gmail.com> | 5 Erik Sandberg <mandolaerik@gmail.com> |
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 18 matching lines...) Expand all Loading... |
29 /* | 29 /* |
30 Iterates \times, by sending TupletSpanEvents at the start/end of each | 30 Iterates \times, by sending TupletSpanEvents at the start/end of each |
31 tuplet bracket. Extra stop/start events are sent at regular | 31 tuplet bracket. Extra stop/start events are sent at regular |
32 intervals if tupletSpannerDuration is set. | 32 intervals if tupletSpannerDuration is set. |
33 */ | 33 */ |
34 class Tuplet_iterator : public Music_wrapper_iterator | 34 class Tuplet_iterator : public Music_wrapper_iterator |
35 { | 35 { |
36 public: | 36 public: |
37 DECLARE_SCHEME_CALLBACK (constructor, ()); | 37 DECLARE_SCHEME_CALLBACK (constructor, ()); |
38 /* construction */ | 38 /* construction */ |
39 DECLARE_CLASSNAME (Tuplet_iterator); | 39 OVERRIDE_CLASS_NAME (Tuplet_iterator); |
40 Tuplet_iterator (); | 40 Tuplet_iterator (); |
41 protected: | 41 protected: |
42 virtual void process (Moment m); | 42 void process (Moment m) override; |
43 virtual void construct_children (); | 43 void construct_children () override; |
44 virtual void derived_mark () const; | 44 void derived_mark () const override; |
45 virtual Moment pending_moment () const; | 45 Moment pending_moment () const override; |
46 | 46 |
47 Music *create_event (Direction d); | 47 Music *create_event (Direction d); |
48 | 48 |
49 private: | 49 private: |
50 | 50 |
51 /* tupletSpannerDuration */ | 51 /* tupletSpannerDuration */ |
52 Moment spanner_duration_; | 52 Moment spanner_duration_; |
53 | 53 |
54 /* next time to add a stop/start pair */ | 54 /* next time to add a stop/start pair */ |
55 Moment next_split_mom_; | 55 Moment next_split_mom_; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 143 } |
144 | 144 |
145 void | 145 void |
146 Tuplet_iterator::derived_mark () const | 146 Tuplet_iterator::derived_mark () const |
147 { | 147 { |
148 scm_gc_mark (synthesized_events_); | 148 scm_gc_mark (synthesized_events_); |
149 Music_wrapper_iterator::derived_mark (); | 149 Music_wrapper_iterator::derived_mark (); |
150 } | 150 } |
151 | 151 |
152 IMPLEMENT_CTOR_CALLBACK (Tuplet_iterator); | 152 IMPLEMENT_CTOR_CALLBACK (Tuplet_iterator); |
OLD | NEW |