source: src/spectral/filterbank_mel.h @ 3b3b03e

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

src/spectral/filterbank.c: refactorise filter bank, split mel frequency coefficients to src/spectral/filterbank_mel.c, start bumping license to GPLv3

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2  Copyright (C) 2007-2009 Paul Brossier <piem@aubio.org>
3                      and Amaury Hazan <ahazan@iua.upf.edu>
4
5  This file is part of Aubio.
6
7  Aubio 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 3 of the License, or
10  (at your option) any later version.
11
12  Aubio 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 Aubio.  If not, see <http://www.gnu.org/licenses/>.
19
20*/
21
22/** \file
23
24  Mel frequency filter bankd coefficients
25
26  Set filter bank coefficients to Mel frequency bands.
27
28  The filter coefficients are built according to Malcolm Slaney's Auditory
29  Toolbox available at http://cobweb.ecn.purdue.edu/~malcolm/interval/1998-010/
30  (see the file mfcc.m).
31
32*/
33
34#ifndef FILTERBANK_MEL_H
35#define FILTERBANK_MEL_H
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#include "filterbank.h"
42
43/** filterbank initialization for mel filters
44
45  \param n_filters number of filters
46  \param win_s window size
47  \param samplerate
48  \param freq_min lowest filter frequency
49  \param freq_max highest filter frequency
50
51*/
52void aubio_filterbank_set_mel_coeffs(aubio_filterbank_t *fb, uint_t samplerate, smpl_t freq_min, smpl_t freq_max);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif // FILTERBANK_MEL_H
Note: See TracBrowser for help on using the repository browser.