[b78805a] | 1 | /* |
---|
| 2 | Copyright (C) 2003 Matthew Davies and Paul Brossier |
---|
| 3 | |
---|
| 4 | This program is free software; you can redistribute it and/or modify |
---|
| 5 | it under the terms of the GNU General Public License as published by |
---|
| 6 | the Free Software Foundation; either version 2 of the License, or |
---|
| 7 | (at your option) any later version. |
---|
| 8 | |
---|
| 9 | This program is distributed in the hope that it will be useful, |
---|
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 12 | GNU General Public License for more details. |
---|
| 13 | |
---|
| 14 | You should have received a copy of the GNU General Public License |
---|
| 15 | along with this program; if not, write to the Free Software |
---|
| 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
| 17 | |
---|
| 18 | */ |
---|
| 19 | |
---|
| 20 | #ifndef BEATTRACKING_H |
---|
| 21 | #define BEATTRACKING_H |
---|
| 22 | |
---|
| 23 | #ifdef __cplusplus |
---|
| 24 | extern "C" { |
---|
| 25 | #endif |
---|
| 26 | |
---|
| 27 | /** |
---|
| 28 | * beat tracking object |
---|
| 29 | */ |
---|
| 30 | typedef struct _aubio_beattracking_t aubio_beattracking_t; |
---|
| 31 | /** |
---|
| 32 | * create beat tracking object |
---|
[4b1e7e7] | 33 | * \param winlen: frame size [512] |
---|
| 34 | * \param channels number (not functionnal) [1] */ |
---|
| 35 | aubio_beattracking_t * new_aubio_beattracking(uint_t winlen, uint_t channels); |
---|
| 36 | /** track the beat |
---|
| 37 | * \param bt beat tracking object |
---|
| 38 | * \param dfframes current input detection function frame. already smoothed by |
---|
| 39 | * adaptive median threshold. |
---|
| 40 | * \param out stored tactus candidate positions |
---|
[b78805a] | 41 | */ |
---|
| 42 | void aubio_beattracking_do(aubio_beattracking_t * bt, fvec_t * dfframes, fvec_t * out); |
---|
| 43 | /** |
---|
| 44 | * delete beat tracker object |
---|
[4b1e7e7] | 45 | * \param p beat tracking object |
---|
[b78805a] | 46 | */ |
---|
| 47 | void del_aubio_beattracking(aubio_beattracking_t * p); |
---|
| 48 | |
---|
| 49 | #ifdef __cplusplus |
---|
| 50 | } |
---|
| 51 | #endif |
---|
| 52 | |
---|
| 53 | #endif /* BEATTRACKING_H */ |
---|