27 lines
501 B
C++
27 lines
501 B
C++
#ifndef TIMELINE_H
|
|
#define TIMELINE_H
|
|
|
|
#include "mathutils.h"
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
class Note;
|
|
|
|
class Timeline
|
|
{
|
|
public:
|
|
|
|
using Iterator = std::vector<Note*>::const_iterator;
|
|
|
|
virtual ~Timeline() = default;
|
|
|
|
virtual void update() = 0;
|
|
virtual void run(std::vector<Note*>&& notes, const microsec& visibility) = 0;
|
|
virtual void clear() = 0;
|
|
|
|
virtual microsec currentMusicOffset() const = 0;
|
|
virtual void drawVisibleNotes() const = 0;
|
|
};
|
|
|
|
#endif // TIMELINE_H
|