feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since dcc649c was
88199ce,
checked in by ahazan <ahazan@mtg55>, 17 years ago
|
added mffc + bark
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | /* |
---|
2 | Copyright (C) 2007 Amaury Hazan |
---|
3 | Ported to aubio from LibXtract |
---|
4 | http://libxtract.sourceforge.net/ |
---|
5 | |
---|
6 | |
---|
7 | This program is free software; you can redistribute it and/or modify |
---|
8 | it under the terms of the GNU General Public License as published by |
---|
9 | the Free Software Foundation; either version 2 of the License, or |
---|
10 | (at your option) any later version. |
---|
11 | |
---|
12 | This program is distributed in the hope that it will be useful, |
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | GNU General Public License for more details. |
---|
16 | |
---|
17 | You should have received a copy of the GNU General Public License |
---|
18 | along with this program; if not, write to the Free Software |
---|
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
20 | |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef AUBIOFILTERBANK_H |
---|
24 | #include AUBIOFILTERBANK_H |
---|
25 | |
---|
26 | #define NYQUIST 22050.f |
---|
27 | |
---|
28 | // Struct Declaration |
---|
29 | |
---|
30 | /** \brief A structure to store a set of n_filters Mel filters */ |
---|
31 | typedef struct aubio_mel_filter_ { |
---|
32 | int n_filters; |
---|
33 | float **filters; |
---|
34 | } aubio_mel_filter; |
---|
35 | |
---|
36 | // Initialization |
---|
37 | |
---|
38 | /** \brief A function to initialise a mel filter bank |
---|
39 | * |
---|
40 | * It is up to the caller to pass in a pointer to memory allocated for freq_bands arrays of length N. This function populates these arrays with magnitude coefficients representing the mel filterbank on a linear scale |
---|
41 | */ |
---|
42 | int aubio_mfcc_init(int N, float nyquist, int style, float freq_min, float freq_max, int freq_bands, float **fft_tables); |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.