source: src/spectral/mfcc.h @ d84d19e

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since d84d19e was e03f74d, checked in by Paul Brossier <piem@piem.org>, 15 years ago

src/spectral/mfcc.h: remove obsolete reference to libxtract, update copyright and license to GPLv3, indent

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[88199ce]1/*
[e03f74d]2   Copyright (C) 2007-2009 Paul Brossier <piem@aubio.org>
3                       and Amaury Hazan <ahazan@iua.upf.edu>
[88199ce]4
[e03f74d]5   This file is part of Aubio.
6
7   Aubio is free software: you can redistribute it and/or modify
[88199ce]8   it under the terms of the GNU General Public License as published by
[e03f74d]9   the Free Software Foundation, either version 3 of the License, or
[88199ce]10   (at your option) any later version.
11
[e03f74d]12   Aubio is distributed in the hope that it will be useful,
[88199ce]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
[e03f74d]18   along with Aubio.  If not, see <http://www.gnu.org/licenses/>.
[88199ce]19
[73eaa2e]20*/
21
[e03f74d]22#ifndef MFCC_H
23#define MFCC_H
[88199ce]24
[7c6c806d]25#ifdef __cplusplus
[e03f74d]26extern "C"
27{
[7c6c806d]28#endif
29
[8708556]30typedef struct aubio_mfcc_t_ aubio_mfcc_t;
[88199ce]31
[8708556]32/** create mfcc object
[88199ce]33
[8708556]34  \param win_s size of analysis buffer (and length the FFT transform)
[e03f74d]35  \param samplerate audio sampling rate
36  \param n_coefs number of desired coefficientss
[7c6c806d]37
[8708556]38*/
[e03f74d]39aubio_mfcc_t *new_aubio_mfcc (uint_t win_s, uint_t samplerate,
40      uint_t n_filters, uint_t n_coefs);
41
[8708556]42/** delete mfcc object
43
44  \param mf mfcc object as returned by new_aubio_mfcc
45
46*/
[e03f74d]47void del_aubio_mfcc (aubio_mfcc_t * mf);
48
[8708556]49/** mfcc object processing
50
51  \param mf mfcc object as returned by new_aubio_mfcc
52  \param in input spectrum (win_s long)
[e03f74d]53  \param out output mel coefficients buffer (n_coeffs long)
[8708556]54
55*/
[e03f74d]56void aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t * in, fvec_t * out);
[8708556]57
[7c6c806d]58#ifdef __cplusplus
59}
60#endif
[88199ce]61
[e03f74d]62#endif                          // MFCC_H
Note: See TracBrowser for help on using the repository browser.