File: BeatTracker.h

package info (click to toggle)
musescore 2.0.3%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 202,532 kB
  • ctags: 58,769
  • sloc: cpp: 257,595; xml: 172,226; ansic: 139,931; python: 6,565; sh: 6,383; perl: 423; makefile: 290; awk: 142; pascal: 67; sed: 3
file content (49 lines) | stat: -rw-r--r-- 1,557 bytes parent folder | download | duplicates (12)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */

/*
  Vamp feature extraction plugin for the BeatRoot beat tracker.

  Centre for Digital Music, Queen Mary, University of London.
  This file copyright 2011 Simon Dixon, Chris Cannam and QMUL.

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License as
  published by the Free Software Foundation; either version 2 of the
  License, or (at your option) any later version.  See the file
  COPYING included with this distribution for more information.
*/

#ifndef _BEAT_TRACKER_H_
#define _BEAT_TRACKER_H_

#include "Event.h"

#include <vector>


class AgentParameters;

namespace BeatTracker {

      /** Perform beat tracking.
       *  @param events The onsets or peaks in a feature list
       *  @param beats The initial beats which are given, if any
       *  @return The list of beats, or an empty list if beat tracking fails
       */
      std::vector<double> beatTrack(const AgentParameters &params,
                                    const EventList &events,
                                    const EventList &beats);

      /** Perform beat tracking.
       *  @param events The onsets or peaks in a feature list
       *  @return The list of beats, or an empty list if beat tracking fails
       */
      std::vector<double> beatTrack(const AgentParameters &params, const EventList &events);

      std::vector<double> beatTrack(const EventList &events);

} // namespace BeatTracker


#endif