From 7fbc7c297c0a5b4f23bfd285789ad55b72f792f3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 Feb 2007 04:16:05 +0000 Subject: Machina quantization, various timing related fixes. git-svn-id: http://svn.drobilla.net/lad/raul@326 a436a847-0d15-0410-975c-d299462d15a1 --- raul/TimeSlice.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'raul/TimeSlice.h') 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 { -- cgit v1.2.1