source: src/spectral/mfcc.h @ c185ebb

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

mfcc.c: use a coefficient table for DCT computation, remove unused parameters

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[88199ce]1/*
[73eaa2e]2   Copyright (C) 2007 Amaury Hazan <ahazan@iua.upf.edu>
3                  and Paul Brossier <piem@piem.org>
[88199ce]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
[73eaa2e]21/* part of this mfcc implementation were inspired from LibXtract
22   http://libxtract.sourceforge.net/
23*/
24
[88199ce]25#ifndef MFCC_H
26#define MFCC_H
27
[7c6c806d]28#ifdef __cplusplus
29extern "C" {
30#endif
31
[8708556]32typedef struct aubio_mfcc_t_ aubio_mfcc_t;
[88199ce]33
[8708556]34/** create mfcc object
[88199ce]35
[8708556]36  \param win_s size of analysis buffer (and length the FFT transform)
37  \param samplerate
38  \param n_coefs: number of desired coefs
[7c6c806d]39
[8708556]40*/
[c185ebb]41aubio_mfcc_t * new_aubio_mfcc (uint_t win_s, uint_t samplerate, uint_t n_filters, uint_t n_coefs);
[8708556]42/** delete mfcc object
43
44  \param mf mfcc object as returned by new_aubio_mfcc
45
46*/
47void del_aubio_mfcc(aubio_mfcc_t *mf);
48/** mfcc object processing
49
50  \param mf mfcc object as returned by new_aubio_mfcc
51  \param in input spectrum (win_s long)
52  \param out output mel coefficients buffer (n_filters/2 +1 long)
53
54*/
55void aubio_mfcc_do(aubio_mfcc_t * mf, cvec_t *in, fvec_t *out);
56
[7c6c806d]57#ifdef __cplusplus
58}
59#endif
[88199ce]60
[73eaa2e]61#endif // MFCC_H
Note: See TracBrowser for help on using the repository browser.