source: src/tempo/beattracking.h @ 8f68dfb

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 8f68dfb was b173ca1, checked in by Paul Brossier <piem@piem.org>, 12 years ago

src/io/sndfileio.h: add documentation

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[b78805a]1/*
[e6a78ea]2  Copyright (C) 2003-2009 Matthew Davies and Paul Brossier <piem@aubio.org>
[b78805a]3
[e6a78ea]4  This file is part of aubio.
5
6  aubio is free software: you can redistribute it and/or modify
[ebfbd15]7  it under the terms of the GNU General Public License as published by
[e6a78ea]8  the Free Software Foundation, either version 3 of the License, or
[ebfbd15]9  (at your option) any later version.
[b78805a]10
[e6a78ea]11  aubio is distributed in the hope that it will be useful,
[ebfbd15]12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
[b78805a]15
[ebfbd15]16  You should have received a copy of the GNU General Public License
[e6a78ea]17  along with aubio.  If not, see <http://www.gnu.org/licenses/>.
18
[b78805a]19*/
20
[ebfbd15]21/** \file
22
23  Beat tracking using a context dependant model
24
[24d4433]25  This file implements the causal beat tracking algorithm designed by Matthew
[ebfbd15]26  Davies and described in the following articles:
27
28  Matthew E. P. Davies and Mark D. Plumbley. Causal tempo tracking of audio.
29  In Proceedings of the International Symposium on Music Information Retrieval
30  (ISMIR), pages 164­169, Barcelona, Spain, 2004.
31
32  Matthew E. P. Davies, Paul Brossier, and Mark D. Plumbley. Beat tracking
33  towards automatic musical accompaniment. In Proceedings of the Audio
34  Engeeniring Society 118th Convention, Barcelona, Spain, May 2005.
[b173ca1]35
36  \example tempo/test-beattracking.h
[ebfbd15]37 
38*/
[b78805a]39#ifndef BEATTRACKING_H
40#define BEATTRACKING_H
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
[ebfbd15]46/** beat tracking object */
[b78805a]47typedef struct _aubio_beattracking_t aubio_beattracking_t;
[ebfbd15]48
49/** create beat tracking object
50
[3ac7cb0]51  \param hop_size number of onset detection samples [512]
[ebfbd15]52
53*/
[d207300]54aubio_beattracking_t * new_aubio_beattracking(uint_t hop_size);
[3ac7cb0]55
[4b1e7e7]56/** track the beat
[ebfbd15]57
58  \param bt beat tracking object
59  \param dfframes current input detection function frame, smoothed by
60  adaptive median threshold.
61  \param out stored detected beat locations
62
63*/
[3ac7cb0]64void aubio_beattracking_do (aubio_beattracking_t * bt, fvec_t * dfframes,
65    fvec_t * out);
66
[416c0b5]67/** get current tempo in bpm
68
69  \param bt beat tracking object
70
71  Returns the currently observed tempo, in beats per minutes, or 0 if no
72  consistent value is found.
73
74*/
75smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * bt);
[3ac7cb0]76
[e34b010]77/** get current tempo confidence
78
79  \param bt beat tracking object
80
81  Returns the confidence with which the tempo has been observed, 0 if no
82  consistent value is found.
83
84*/
85smpl_t aubio_beattracking_get_confidence(aubio_beattracking_t * bt);
[3ac7cb0]86
[ebfbd15]87/** delete beat tracking object
88
89  \param p beat tracking object
90
91*/
[b78805a]92void del_aubio_beattracking(aubio_beattracking_t * p);
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif /* BEATTRACKING_H */
Note: See TracBrowser for help on using the repository browser.