comparison Event.h @ 6:02d388f98c23

Introduce a number of new classes derived from the Java
author Chris Cannam
date Tue, 27 Sep 2011 18:37:01 +0100
parents
children 3c11becfc81a
comparison
equal deleted inserted replaced
5:2150607d4726 6:02d388f98c23
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 Vamp feature extraction plugin for the BeatRoot beat tracker.
5
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2011 Simon Dixon, Chris Cannam and QMUL.
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information.
14 */
15
16 #ifndef _EVENT_H_
17 #define _EVENT_H_
18
19 #include <vector>
20
21 struct Event {
22 double time;
23 double beat;
24 double salience;
25
26 Event(double t, double b, double s) : time(t), beat(b), salience(s) { }
27 };
28
29 typedef std::vector<Event> EventList;
30
31 #endif
32