Changeset e03f74d
- Timestamp:
- Sep 17, 2009, 8:04:00 PM (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:
- 0028ea7
- Parents:
- 7a84b21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/mfcc.h
r7a84b21 re03f74d 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 5 This file is part of Aubio. 6 7 Aubio is free software: you can redistribute it and/or modify 6 8 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation ; either version 2of the License, or9 the Free Software Foundation, either version 3 of the License, or 8 10 (at your option) any later version. 9 11 10 This programis distributed in the hope that it will be useful,12 Aubio is distributed in the hope that it will be useful, 11 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 14 16 15 17 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. 18 along with Aubio. If not, see <http://www.gnu.org/licenses/>. 18 19 19 20 */ 20 21 21 /* part of this mfcc implementation were inspired from LibXtract 22 http://libxtract.sourceforge.net/ 23 */ 24 25 #ifndef MFCC_H 26 #define MFCC_H 22 #ifndef MFCC_H 23 #define MFCC_H 27 24 28 25 #ifdef __cplusplus 29 extern "C" { 26 extern "C" 27 { 30 28 #endif 31 29 … … 35 33 36 34 \param win_s size of analysis buffer (and length the FFT transform) 37 \param samplerate 38 \param n_coefs : number of desired coefs35 \param samplerate audio sampling rate 36 \param n_coefs number of desired coefficientss 39 37 40 38 */ 41 aubio_mfcc_t * new_aubio_mfcc (uint_t win_s, uint_t samplerate, uint_t n_filters, uint_t n_coefs); 39 aubio_mfcc_t *new_aubio_mfcc (uint_t win_s, uint_t samplerate, 40 uint_t n_filters, uint_t n_coefs); 41 42 42 /** delete mfcc object 43 43 … … 45 45 46 46 */ 47 void del_aubio_mfcc(aubio_mfcc_t *mf); 47 void del_aubio_mfcc (aubio_mfcc_t * mf); 48 48 49 /** mfcc object processing 49 50 50 51 \param mf mfcc object as returned by new_aubio_mfcc 51 52 \param in input spectrum (win_s long) 52 \param out output mel coefficients buffer (n_ filters/2 +1long)53 \param out output mel coefficients buffer (n_coeffs long) 53 54 54 55 */ 55 void aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t *in, fvec_t *out);56 void aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t * in, fvec_t * out); 56 57 57 58 #ifdef __cplusplus … … 59 60 #endif 60 61 61 #endif // MFCC_H62 #endif // MFCC_H
Note: See TracChangeset
for help on using the changeset viewer.