Changeset b276dee for src/filterbank.h


Ignore:
Timestamp:
Sep 8, 2007, 3:59:11 PM (17 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
f14a78d
Parents:
53a7576
Message:

mfcc.{c,h}, filterbank.{c,h}: move filter initialisation into new_aubio_filterbank_mfcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/filterbank.h

    r53a7576 rb276dee  
    4444aubio_filterbank_t * new_aubio_filterbank(uint_t n_filters, uint_t win_s);
    4545
     46/** filterbank initialization for mel filters
     47
     48  \param nyquist nyquist frequency, i.e. half of the sampling rate
     49  \param style libxtract style
     50  \param freqmin lowest filter frequency
     51  \param freqmax highest filter frequency
     52
     53*/
     54aubio_filterbank_t * new_aubio_filterbank_mfcc(uint_t n_filters, uint_t win_s, smpl_t samplerate, smpl_t freq_min, smpl_t freq_max);
     55
     56
    4657/** destroy filterbank object
    4758
     
    5162void del_aubio_filterbank(aubio_filterbank_t * fb);
    5263
    53 /** filterbank initialization for mel filters
    54 
    55   \param fb filterbank, as returned by new_aubio_filterbank method
    56   \param nyquist nyquist frequency, i.e. half of the sampling rate
    57   \param style libxtract style
    58   \param freqmin lowest filter frequency
    59   \param freqmax highest filter frequency
     64/** compute filterbank
    6065
    6166*/
    62 void aubio_filterbank_mfcc_init(aubio_filterbank_t * fb, smpl_t nyquist, int style, smpl_t freq_min, smpl_t freq_max);
    63 
    64 // Initialization
    65 
    66 /** \brief A function to initialise a mel filter bank
    67  *
    68  * It is up to the caller to pass in a pointer to memory allocated for freq_bands arrays of length N. This function populates these arrays with magnitude coefficients representing the mel filterbank on a linear scale
    69  */
    70 int aubio_mfcc_init(int N, smpl_t nyquist, int style, smpl_t freq_min, smpl_t freq_max, int freq_bands, smpl_t ** fft_tables);
     67void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out);
    7168
    7269#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.