diff options
author | nick_m <mainsbridge@gmail.com> | 2016-03-24 19:42:28 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:12 +1000 |
commit | 3c2ad63de7a1674fa636b29d8aa84b43e15a97f7 (patch) | |
tree | f489cc7509356d1471fc7f024d77e4e46c7186d6 /libs/ardour/ardour/tempo.h | |
parent | 33e98186e44c479eeb2731ebc294c5925cb036c4 (diff) |
Tempo ramps - complete 'music locked meters are now positioned using beats' transition.
Diffstat (limited to 'libs/ardour/ardour/tempo.h')
-rw-r--r-- | libs/ardour/ardour/tempo.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libs/ardour/ardour/tempo.h b/libs/ardour/ardour/tempo.h index 737c288abe..092ce27c08 100644 --- a/libs/ardour/ardour/tempo.h +++ b/libs/ardour/ardour/tempo.h @@ -138,18 +138,21 @@ private: /** A section of timeline with a certain Meter. */ class LIBARDOUR_API MeterSection : public MetricSection, public Meter { public: - MeterSection (double beat, const Timecode::BBT_Time& bbt, double bpb, double note_type) - : MetricSection (beat), Meter (bpb, note_type), _bbt (bbt) {} - MeterSection (framepos_t frame, double bpb, double note_type) - : MetricSection (frame), Meter (bpb, note_type), _bbt (1, 1, 0) {} + MeterSection (double pulse, double beat, const Timecode::BBT_Time& bbt, double bpb, double note_type) + : MetricSection (pulse), Meter (bpb, note_type), _bbt (bbt), _beat (beat) {} + MeterSection (framepos_t frame, double beat, double bpb, double note_type) + : MetricSection (frame), Meter (bpb, note_type), _bbt (1, 1, 0), _beat (beat) {} MeterSection (const XMLNode&); static const std::string xml_state_node_name; XMLNode& get_state() const; - void set_pulse (std::pair<double, Timecode::BBT_Time>& w) { - MetricSection::set_pulse (w.first); + void set_pulse (double w) { + MetricSection::set_pulse (w); + } + void set_beat (std::pair<double, Timecode::BBT_Time>& w) { + _beat = w.first; _bbt = w.second; } |