Mercurial > hg > beatroot-vamp
comparison Event.h @ 13:0d4048bfadbb
Fixes to beat insertion in Agent. We get plausible results now, but there's probably quite a lot still to do.
author | Chris Cannam |
---|---|
date | Thu, 06 Oct 2011 18:37:50 +0100 |
parents | 3c11becfc81a |
children |
comparison
equal
deleted
inserted
replaced
12:59520cd6abac | 13:0d4048bfadbb |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #ifndef _EVENT_H_ | 16 #ifndef _EVENT_H_ |
17 #define _EVENT_H_ | 17 #define _EVENT_H_ |
18 | 18 |
19 #include <vector> | 19 #include <list> |
20 | 20 |
21 struct Event { | 21 struct Event { |
22 double time; | 22 double time; |
23 double beat; | 23 double beat; |
24 double salience; | 24 double salience; |
32 bool operator!=(const Event &e) { | 32 bool operator!=(const Event &e) { |
33 return !operator==(e); | 33 return !operator==(e); |
34 } | 34 } |
35 }; | 35 }; |
36 | 36 |
37 typedef std::vector<Event> EventList; | 37 typedef std::list<Event> EventList; |
38 | 38 |
39 #endif | 39 #endif |
40 | 40 |