2021-06-07 14:19:58 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <SFML/System/Clock.hpp>
|
|
|
|
|
|
|
|
using microsec = sf::Int64;
|
|
|
|
|
|
|
|
class Note
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit Note(microsec perfect_offset) :
|
|
|
|
_perfect_offset(perfect_offset) {}
|
|
|
|
virtual ~Note() = 0;
|
|
|
|
|
2021-06-08 14:32:36 -04:00
|
|
|
virtual bool isActive(microsec music_offset) const = 0;
|
|
|
|
|
|
|
|
virtual microsec offset() const
|
|
|
|
{
|
|
|
|
return _perfect_offset;
|
|
|
|
}
|
|
|
|
|
2021-06-07 14:19:58 -04:00
|
|
|
protected:
|
|
|
|
microsec _perfect_offset;
|
|
|
|
};
|