Ignore:
Timestamp:
Sep 17, 2009, 1:20:54 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
3b3b03e
Parents:
7bf3dcb
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/filterbank.h

    r7bf3dcb r06cae6c  
    11/*
    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>
    44
    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.
    96
    10    This program is distributed in the hope that it will be useful,
    11    but WITHOUT ANY WARRANTY; without even the implied warranty of
    12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13    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.
    1411
    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
    1820*/
    1921
     
    2224  Filterbank object
    2325
    24   General-purpose spectral filterbank object. Comes with mel-filter initialization function.
     26  General-purpose spectral filterbank object.
    2527
    2628*/
     
    4547aubio_filterbank_t * new_aubio_filterbank(uint_t n_filters, uint_t win_s);
    4648
    47 /** filterbank initialization for mel filters
    48 
    49  
    50   \param n_filters number of filters
    51   \param win_s window size
    52   \param samplerate
    53   \param freq_min lowest filter frequency
    54   \param freq_max highest filter frequency
    55 
    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 
    5949/** destroy filterbank object
    6050
     
    6656/** compute filterbank
    6757
     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
    6862*/
    6963void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out);
    7064
    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
    7268
    7369 */
    74 fvec_t * aubio_filterbank_getchannel(aubio_filterbank_t * f, uint_t channel);
     70fvec_t * aubio_filterbank_get_coeffs(aubio_filterbank_t * f);
    7571
    7672#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.