annotate 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
rev   line source
Chris@6 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@6 2
Chris@6 3 /*
Chris@6 4 Vamp feature extraction plugin for the BeatRoot beat tracker.
Chris@6 5
Chris@6 6 Centre for Digital Music, Queen Mary, University of London.
Chris@6 7 This file copyright 2011 Simon Dixon, Chris Cannam and QMUL.
Chris@6 8
Chris@6 9 This program is free software; you can redistribute it and/or
Chris@6 10 modify it under the terms of the GNU General Public License as
Chris@6 11 published by the Free Software Foundation; either version 2 of the
Chris@6 12 License, or (at your option) any later version. See the file
Chris@6 13 COPYING included with this distribution for more information.
Chris@6 14 */
Chris@6 15
Chris@6 16 #ifndef _EVENT_H_
Chris@6 17 #define _EVENT_H_
Chris@6 18
Chris@6 19 #include <vector>
Chris@6 20
Chris@6 21 struct Event {
Chris@6 22 double time;
Chris@6 23 double beat;
Chris@6 24 double salience;
Chris@6 25
Chris@6 26 Event(double t, double b, double s) : time(t), beat(b), salience(s) { }
Chris@6 27 };
Chris@6 28
Chris@6 29 typedef std::vector<Event> EventList;
Chris@6 30
Chris@6 31 #endif
Chris@6 32