Changeset 06cae6c for src/spectral/filterbank.h
- Timestamp:
- Sep 17, 2009, 1:20:54 AM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 3b3b03e
- Parents:
- 7bf3dcb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/filterbank.h
r7bf3dcb r06cae6c 1 1 /* 2 Copyright (C) 2007 Amaury Hazan <ahazan@iua.upf.edu>3 and Paul Brossier <piem@piem.org>2 Copyright (C) 2007-2009 Paul Brossier <piem@aubio.org> 3 and Amaury Hazan <ahazan@iua.upf.edu> 4 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 5 This file is part of Aubio. 9 6 10 This program is distributed in the hope that it will be useful,11 but WITHOUT ANY WARRANTY; without even the implied warranty of12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 GNU General Public License for more details.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. 14 11 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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 18 20 */ 19 21 … … 22 24 Filterbank object 23 25 24 General-purpose spectral filterbank object. Comes with mel-filter initialization function.26 General-purpose spectral filterbank object. 25 27 26 28 */ … … 45 47 aubio_filterbank_t * new_aubio_filterbank(uint_t n_filters, uint_t win_s); 46 48 47 /** filterbank initialization for mel filters48 49 50 \param n_filters number of filters51 \param win_s window size52 \param samplerate53 \param freq_min lowest filter frequency54 \param freq_max highest filter frequency55 56 */57 aubio_filterbank_t * new_aubio_filterbank_mfcc(uint_t n_filters, uint_t win_s, uint_t samplerate, smpl_t freq_min, smpl_t freq_max);58 59 49 /** destroy filterbank object 60 50 … … 66 56 /** compute filterbank 67 57 58 \param fb filterbank containing nfilt x win_s filter coefficients 59 \param in input spectrum containing chans x win_s spectrum 60 \param out output vector containing chans x nfilt output values 61 68 62 */ 69 63 void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out); 70 64 71 /** return the vector containing the filter coefficients of one channel 65 /** return a pointer to the fvec object containing all filter coefficients 66 67 \param f filterbank object to get coefficients from 72 68 73 69 */ 74 fvec_t * aubio_filterbank_get channel(aubio_filterbank_t * f, uint_t channel);70 fvec_t * aubio_filterbank_get_coeffs(aubio_filterbank_t * f); 75 71 76 72 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.