blob: 7df4af4445d1e93d1ff9f4d72dd8f5ab00ef99bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __gtk2_ardour_note_player_h__
#define __gtk2_ardour_note_player_h__
#include <vector>
#include <boost/shared_ptr.hpp>
#include <sigc++/trackable.h>
#include "evoral/Note.hpp"
namespace ARDOUR {
class MidiTrack;
}
class NotePlayer : public sigc::trackable {
public:
typedef Evoral::Note<Evoral::MusicalTime> NoteType;
NotePlayer (boost::shared_ptr<ARDOUR::MidiTrack>);
~NotePlayer () {}
void add (boost::shared_ptr<NoteType>);
void play ();
void off ();
static bool _off (NotePlayer*);
private:
typedef std::vector<boost::shared_ptr<NoteType> > NoteList;
boost::shared_ptr<ARDOUR::MidiTrack> track;
NoteList notes;
};
#endif /* __gtk2_ardour_note_player_h__ */
|