source: src/mfcc.h @ 177f09a

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

remove dump_filterbank kludge, move aubio_dct_do to mfcc.c

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2   Copyright (C) 2007 Amaury Hazan <ahazan@iua.upf.edu>
3                  and Paul Brossier <piem@piem.org>
4
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License as published by
7   the Free Software Foundation; either version 2 of the License, or
8   (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU General Public License for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19*/
20
21/* part of this mfcc implementation were inspired from LibXtract
22   http://libxtract.sourceforge.net/
23*/
24
25#ifndef MFCC_H
26#define MFCC_H
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include "sample.h"
33#include "filterbank.h"
34
35typedef struct aubio_mfcc_t_ aubio_mfcc_t;
36
37/** create mfcc object
38
39  \param win_s size of analysis buffer (and length the FFT transform)
40  \param samplerate
41  \param n_coefs: number of desired coefs
42  \param lowfreq: lowest frequency to use in filterbank
43  \param highfreq highest frequency to use in filterbank
44  \param channels number of channels
45
46*/
47aubio_mfcc_t * new_aubio_mfcc (uint_t win_s, uint_t samplerate, uint_t n_filters, uint_t n_coefs, smpl_t lowfreq, smpl_t highfreq, uint_t channels);
48/** delete mfcc object
49
50  \param mf mfcc object as returned by new_aubio_mfcc
51
52*/
53void del_aubio_mfcc(aubio_mfcc_t *mf);
54/** mfcc object processing
55
56  \param mf mfcc object as returned by new_aubio_mfcc
57  \param in input spectrum (win_s long)
58  \param out output mel coefficients buffer (n_filters/2 +1 long)
59
60*/
61void aubio_mfcc_do(aubio_mfcc_t * mf, cvec_t *in, fvec_t *out);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif // MFCC_H
Note: See TracBrowser for help on using the repository browser.