Changeset 7a46bf6 for src/filterbank.h
- Timestamp:
- Sep 10, 2007, 7:29:32 PM (17 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:
- 787f1f3, ef1c3b7
- Parents:
- 7c6c806d (diff), 45134c5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/filterbank.h
r7c6c806d r7a46bf6 1 1 /* 2 Copyright (C) 2007 Amaury Hazan 3 Ported to aubio from LibXtract 4 http://libxtract.sourceforge.net/ 5 2 Copyright (C) 2007 Amaury Hazan <ahazan@iua.upf.edu> 3 and Paul Brossier <piem@piem.org> 6 4 7 5 This program is free software; you can redistribute it and/or modify … … 20 18 */ 21 19 22 #ifndef AUBIOFILTERBANK_H 23 #define AUBIOFILTERBANK_H 20 /** \file 21 22 Filterbank object 23 24 General-purpose spectral filterbank object. Comes with mel-filter initialization function. 25 26 */ 27 28 #ifndef FILTERBANK_H 29 #define FILTERBANK_H 24 30 25 31 #ifdef __cplusplus … … 27 33 #endif 28 34 35 typedef struct aubio_filterbank_t_ aubio_filterbank_t; 36 37 /** create filterbank object 38 39 \param win_s size of analysis buffer (and length the FFT transform) 40 \param n_filters number of filters to create 41 42 */ 43 44 aubio_filterbank_t * new_aubio_filterbank(uint_t n_filters, uint_t win_s); 45 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 */ 54 aubio_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); 29 55 30 56 31 typedef struct aubio_mel_filter_ aubio_mel_filter; 57 /** destroy filterbank object 32 58 33 // Initialization 59 \param fb filterbank, as returned by new_aubio_filterbank method 34 60 35 /** \brief A function to initialise a mel filter bank 36 * 37 * 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 38 */ 39 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); 61 */ 62 void del_aubio_filterbank(aubio_filterbank_t * fb); 63 64 /** compute filterbank 65 66 */ 67 void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out); 40 68 41 69 #ifdef __cplusplus … … 43 71 #endif 44 72 45 #endif 73 #endif // FILTERBANK_H
Note: See TracChangeset
for help on using the changeset viewer.