summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/tempo.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-03-22 02:24:04 +1100
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:12 +1000
commitcab7335d588031dee6694d5f74ab69386e212be7 (patch)
tree41ac14c4fd50899b6cffdd9c6e40b5a3a602a2d3 /libs/ardour/ardour/tempo.h
parent7d06651a5c6e9b11e2739b8ca1b45f196777b193 (diff)
Tempo ramps - fix crash with simplest case.
Diffstat (limited to 'libs/ardour/ardour/tempo.h')
-rw-r--r--libs/ardour/ardour/tempo.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/ardour/tempo.h b/libs/ardour/ardour/tempo.h
index 38ae877e72..5351d4fa94 100644
--- a/libs/ardour/ardour/tempo.h
+++ b/libs/ardour/ardour/tempo.h
@@ -109,7 +109,6 @@ class LIBARDOUR_API MetricSection {
virtual ~MetricSection() {}
const double& pulse () const { return _pulse; }
- //const double tick () const { return _beat * Timecode::BBT_Time::ticks_per_beat; }
void set_pulse (double pulse) { _pulse = pulse; }
framepos_t frame() const { return _frame; }
@@ -155,7 +154,7 @@ class LIBARDOUR_API MeterSection : public MetricSection, public Meter {
}
const Timecode::BBT_Time& bbt() const { return _bbt; }
- double beat () { return _beat; }
+ const double& beat () const { return _beat; }
void set_beat (double beat) { _beat = beat; }
private: