summaryrefslogtreecommitdiff
path: root/timestamp.h
blob: 6a7d3637c88598a1e3e03e6a4c26d62923bbf21d (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