diff options
Diffstat (limited to 'tests/time_test.cpp')
-rw-r--r-- | tests/time_test.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/time_test.cpp b/tests/time_test.cpp new file mode 100644 index 0000000..0eb0a83 --- /dev/null +++ b/tests/time_test.cpp @@ -0,0 +1,29 @@ +#include <iostream> +#include <raul/TimeSlice.h> + +using namespace std; +using namespace Raul; + + +int +main() +{ + TimeSlice ts(1/48000.0, 120); + + string in_string; + double in_double = 0; + + cout << "Beats: "; + cin >> in_double; + + cout << "\tSeconds: "; + cout << ts.beats_to_seconds(in_double); + cout << endl; + + cout << "\tTicks: "; + cout << ts.beats_to_ticks(in_double); + cout << endl; + + return 0; +} + |