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.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 timestamp.cpp (limited to 'timestamp.cpp') diff --git a/timestamp.cpp b/timestamp.cpp new file mode 100644 index 0000000..a39a527 --- /dev/null +++ b/timestamp.cpp @@ -0,0 +1,21 @@ +#include "timestamp.h" + +Timestamp::Timestamp(long int time, int tick, int nbpm): + time(time), tick(tick), nbpm(nbpm){}; + +int Timestamp::getTime(){ + return time; +} + +int Timestamp::getTick(){ + return tick; +} + +float Timestamp::getBPM(){ + return nbpm/1000; +} + +int Timestamp::getNbpm(){ + return nbpm; +} +// vim: syntax=cpp.doxygen -- cgit v1.2.3