You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
-
- class TimeUtils
- {
- public:
- static float barToTime(int bar)
- {
- return bar * 4.f; // for now, 4 q in one bar
- }
- static int timeToBar(float time)
- {
- return (int) std::round(time / 4.f);
- }
- };
|