source: src/spectral/filterbank.h @ a6db140

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

src/spectral/filterbank.{c,h}: indent

  • Property mode set to 100644
File size: 1.9 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
25
26  General-purpose spectral filterbank object.
27
28*/
29
30#ifndef FILTERBANK_H
31#define FILTERBANK_H
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38/** filterbank object */
39typedef struct aubio_filterbank_t_ aubio_filterbank_t;
40
41/** create filterbank object
42
43  \param win_s size of analysis buffer (and length the FFT transform)
44  \param n_filters number of filters to create
45
46*/
47
48aubio_filterbank_t *new_aubio_filterbank (uint_t n_filters, uint_t win_s);
49
50/** destroy filterbank object
51
52  \param fb filterbank, as returned by new_aubio_filterbank method
53
54*/
55void del_aubio_filterbank (aubio_filterbank_t * fb);
56
57/** compute filterbank
58
59  \param fb filterbank containing     nfilt x win_s filter coefficients
60  \param in input spectrum containing chans x win_s spectrum
61  \param out output vector containing chans x nfilt output values
62
63*/
64void aubio_filterbank_do (aubio_filterbank_t * fb, cvec_t * in, fvec_t * out);
65
66/** return a pointer to the fvec object containing all filter coefficients
67
68  \param f filterbank object to get coefficients from
69
70 */
71fvec_t *aubio_filterbank_get_coeffs (aubio_filterbank_t * f);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif                          // FILTERBANK_H
Note: See TracBrowser for help on using the repository browser.