andrew@0: /* andrew@0: Copyright (C) 2006 Paul Brossier andrew@0: andrew@0: This program is free software; you can redistribute it and/or modify andrew@0: it under the terms of the GNU General Public License as published by andrew@0: the Free Software Foundation; either version 2 of the License, or andrew@0: (at your option) any later version. andrew@0: andrew@0: This program is distributed in the hope that it will be useful, andrew@0: but WITHOUT ANY WARRANTY; without even the implied warranty of andrew@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the andrew@0: GNU General Public License for more details. andrew@0: andrew@0: You should have received a copy of the GNU General Public License andrew@0: along with this program; if not, write to the Free Software andrew@0: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. andrew@0: andrew@0: */ andrew@0: andrew@0: /** \file andrew@0: andrew@0: Tempo detection driver andrew@0: andrew@0: This object stores all the memory required for tempo detection algorithm andrew@0: and returns the estimated beat locations. andrew@0: andrew@0: */ andrew@0: andrew@0: #ifndef TEMPO_H andrew@0: #define TEMPO_H andrew@0: andrew@0: #ifdef __cplusplus andrew@0: extern "C" { andrew@0: #endif andrew@0: andrew@0: /** tempo detection structure */ andrew@0: typedef struct _aubio_tempo_t aubio_tempo_t; andrew@0: andrew@0: /** create tempo detection object */ andrew@0: aubio_tempo_t * new_aubio_tempo (aubio_onsetdetection_type type_onset, andrew@0: ba_uint_t buf_size, ba_uint_t hop_size, ba_uint_t channels); andrew@0: andrew@0: /** execute tempo detection */ andrew@0: void aubio_tempo(aubio_tempo_t *o, fvec_t * input, fvec_t * tempo); andrew@0: andrew@0: /** set tempo detection silence threshold */ andrew@0: void aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence); andrew@0: andrew@0: /** set tempo detection peak picking threshold */ andrew@0: void aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold); andrew@0: andrew@0: /** delete tempo detection object */ andrew@0: void del_aubio_tempo(aubio_tempo_t * o); andrew@0: andrew@0: #ifdef __cplusplus andrew@0: } andrew@0: #endif andrew@0: andrew@0: #endif /* TEMPO_H */