2021-04-08 09:34:03 -04:00
|
|
|
#ifndef TIMELINE_H
|
|
|
|
#define TIMELINE_H
|
|
|
|
|
2021-06-24 14:04:09 -04:00
|
|
|
#include "mathutils.h"
|
2021-04-08 09:34:03 -04:00
|
|
|
#include <memory>
|
2021-06-24 14:04:09 -04:00
|
|
|
#include <vector>
|
2021-04-08 09:34:03 -04:00
|
|
|
|
2021-06-23 15:18:33 -04:00
|
|
|
class Note;
|
|
|
|
|
2021-06-07 14:19:58 -04:00
|
|
|
class Timeline
|
2021-04-08 09:34:03 -04:00
|
|
|
{
|
|
|
|
public:
|
2021-06-23 15:18:33 -04:00
|
|
|
|
|
|
|
using Iterator = std::vector<Note*>::const_iterator;
|
|
|
|
|
2021-06-07 14:19:58 -04:00
|
|
|
virtual ~Timeline() = default;
|
2021-04-08 09:34:03 -04:00
|
|
|
|
2021-06-08 14:32:36 -04:00
|
|
|
virtual void update() = 0;
|
2021-06-23 15:18:33 -04:00
|
|
|
virtual void run(std::vector<Note*>&& notes, const microsec& visibility) = 0;
|
2021-06-07 14:19:58 -04:00
|
|
|
virtual void clear() = 0;
|
2021-06-08 14:32:36 -04:00
|
|
|
|
|
|
|
virtual microsec currentMusicOffset() const = 0;
|
2021-06-23 15:18:33 -04:00
|
|
|
virtual void drawVisibleNotes() const = 0;
|
2021-04-08 09:34:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TIMELINE_H
|