summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--raul/TimeSlice.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/raul/TimeSlice.hpp b/raul/TimeSlice.hpp
index e86dc45..e0a849a 100644
--- a/raul/TimeSlice.hpp
+++ b/raul/TimeSlice.hpp
@@ -100,7 +100,7 @@ public:
}
inline TimeStamp beats_to_ticks(TimeStamp beats) const {
- return TimeStamp(ticks_unit(), beats.to_double() / (double)_beat_rate * _tick_rate);
+ return TimeStamp(ticks_unit(), beats.to_double() * (double)_beat_rate * _tick_rate);
}
inline TimeStamp ticks_to_seconds(TimeStamp ticks) const {