summaryrefslogtreecommitdiff
path: root/timestamp.h
blob: b57f5ddca41ff4c020a61bd425b8b2bf637c81d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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