source: src/filterbank.h @ 71d3bf0

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 71d3bf0 was 71d3bf0, checked in by Amaury Hazan <mahmoudax@gmail.com>, 17 years ago

small adds

  • Property mode set to 100644
File size: 1.4 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#ifndef AUBIOFILTERBANK_H
23#define AUBIOFILTERBANK_H
24
25
26// Struct Declaration
27
28/** \brief A structure to store a set of n_filters Mel filters */
29typedef struct aubio_mel_filter_ {
30    int n_filters;
31    smpl_t **filters;
32} aubio_mel_filter;
33
34// Initialization
35
36/** \brief A function to initialise a mel filter bank
37 *
38 * 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
39 */
40int aubio_mfcc_init(int N, float nyquist, int style, float freq_min, float freq_max, int freq_bands, smpl_t ** fft_tables);
41
42#endif
Note: See TracBrowser for help on using the repository browser.