diff options
Diffstat (limited to 'raul/TimeSlice.h')
-rw-r--r-- | raul/TimeSlice.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/raul/TimeSlice.h b/raul/TimeSlice.h index 289233c..7ffd8a4 100644 --- a/raul/TimeSlice.h +++ b/raul/TimeSlice.h @@ -81,6 +81,10 @@ public: return (time >= start_ticks() && time < start_ticks() + length_ticks()); } + double tick_rate() { return _tick_rate; } + double beat_rate() { return _beat_rate; } + double bpm() { return 60/_beat_rate; } + void set_tick_rate(double tick_rate) { _tick_rate = tick_rate; update_beat_time(); @@ -88,7 +92,7 @@ public: void set_bpm(double bpm) { _beat_rate = 60.0/bpm; - update_beat_time(); + //update_beat_time(); } inline Seconds beats_to_seconds(BeatTime beats) const { |