diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-04-08 13:36:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-08 13:36:34 -0400 |
commit | c3946e1a73aec0eb75ff4301dc42e1a2a71aab60 (patch) | |
tree | 9bfd6b6df4666491295b30088a6bf7bec6f61757 /timestamp.h | |
parent | 0fd63dfa5dfcac42a45f0b247e8461b4b969d6f7 (diff) | |
parent | 3180cb7584c037463ee5c2047aea3e3ed0f0b364 (diff) |
Diffstat (limited to 'timestamp.h')
-rw-r--r-- | timestamp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/timestamp.h b/timestamp.h new file mode 100644 index 0000000..b57f5dd --- /dev/null +++ b/timestamp.h @@ -0,0 +1,21 @@ +#ifndef TIMESTAMP_H +#define TIMESTAMP_H + +#include <cstdint> + +class Timestamp{ + public: + Timestamp(long int time, int tick, int nbpm); + int getTime(); + int getTick(); + float getBPM(); + int getNbpm(); // Weird chart formatting (133000 = 133 bpm) + private: + const long int time; // Time in the song in milliseconds + const int tick; // Current tick in the song + const int nbpm; // New BPM to change to +}; + +//#include "timestamp.cpp" +#endif // TIMESTAMP_H +// vim: syntax=cpp.doxygen |