From 1acc49b21d850e035a2517930e6738b873953047 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 21 Mar 2023 02:32:05 -0400 Subject: Manual merge of chartFile branch --- timestamp.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 timestamp.h (limited to 'timestamp.h') diff --git a/timestamp.h b/timestamp.h new file mode 100644 index 0000000..6a7d363 --- /dev/null +++ b/timestamp.h @@ -0,0 +1,21 @@ +#ifndef TIMESTAMP_H +#define TIMESTAMP_H + +#include + +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 -- cgit v1.2.3