source: src/spectral/filterbank_mel.h @ c0608bd

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

src/spectral/: improve documentation

  • Property mode set to 100644
File size: 2.0 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  Filterbank object coefficients initialization
25
26  Functions to create set the ::aubio_filterbank_t coefficients to
27    - ::aubio_filterbank_set_triangle_bands: overlapping triangular bands,
28    - ::aubio_filterbank_set_mel_coeffs_slaney: Mel frequency bands.
29
30*/
31
32#ifndef FILTERBANK_MEL_H
33#define FILTERBANK_MEL_H
34
35#ifdef __cplusplus
36extern "C"
37{
38#endif
39
40/** filterbank initialization with triangular and overlapping bands
41
42  \param fb filterbank object
43  \param freqs arbitrary array of boundary frequencies
44  \param samplerate audio sampling rate
45
46  This function computes the coefficients of the filterbank based on the
47  boundaries found in freqs, in Hz, and using triangular overlapping bands.
48
49*/
50uint_t aubio_filterbank_set_triangle_bands (aubio_filterbank_t * fb,
51    fvec_t * freqs, smpl_t samplerate);
52
53/** filterbank initialization for Mel filters using Slaney's coefficients
54
55  \param fb filterbank object
56  \param samplerate audio sampling rate
57
58  The filter coefficients are built according to Malcolm Slaney's Auditory
59  Toolbox, available at http://cobweb.ecn.purdue.edu/~malcolm/interval/1998-010/
60  (see file mfcc.m).
61
62*/
63uint_t aubio_filterbank_set_mel_coeffs_slaney (aubio_filterbank_t * fb,
64    smpl_t samplerate);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif // FILTERBANK_MEL_H
Note: See TracBrowser for help on using the repository browser.