source: src/spectral/mfcc.h @ 00819aa

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

src/spectral/: add const qualifiers

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[88199ce]1/*
[b235c0e]2  Copyright (C) 2007-2013 Paul Brossier <piem@aubio.org>
[1c2e186]3                      and Amaury Hazan <ahazan@iua.upf.edu>
[88199ce]4
[1c2e186]5  This file is part of aubio.
[e03f74d]6
[1c2e186]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.
[88199ce]11
[1c2e186]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.
[88199ce]16
[1c2e186]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/>.
[88199ce]19
[73eaa2e]20*/
21
[d99d819]22/** \file
23
[aba718a]24  Mel-Frequency Cepstrum Coefficients object
25
26  This object computes MFCC coefficients on an input cvec_t.
27
28  The implementation follows the specifications established by Malcolm Slaney
29  in its Auditory Toolbox, available online (see file mfcc.m).
30
31  http://engineering.ecn.purdue.edu/~malcolm/interval/1998-010/
[d99d819]32
[8a5c8ba]33  \example spectral/test-mfcc.c
[b8c0685]34
[d99d819]35*/
36
[b235c0e]37#ifndef _AUBIO_MFCC_H
38#define _AUBIO_MFCC_H
[88199ce]39
[7c6c806d]40#ifdef __cplusplus
[e03f74d]41extern "C"
42{
[7c6c806d]43#endif
44
[d99d819]45/** mfcc object */
46typedef struct _aubio_mfcc_t aubio_mfcc_t;
[88199ce]47
[8708556]48/** create mfcc object
[88199ce]49
[3ac7cb0]50  \param buf_size size of analysis buffer (and length the FFT transform)
[e03f74d]51  \param samplerate audio sampling rate
[c9cebe1]52  \param n_coeffs number of desired coefficients
[d99d819]53  \param n_filters number of desired filters
[7c6c806d]54
[8708556]55*/
[3ac7cb0]56aubio_mfcc_t *new_aubio_mfcc (uint_t buf_size,
[6107f4c]57    uint_t n_filters, uint_t n_coeffs, uint_t samplerate);
[e03f74d]58
[8708556]59/** delete mfcc object
60
61  \param mf mfcc object as returned by new_aubio_mfcc
62
63*/
[e03f74d]64void del_aubio_mfcc (aubio_mfcc_t * mf);
65
[8708556]66/** mfcc object processing
67
68  \param mf mfcc object as returned by new_aubio_mfcc
[3ac7cb0]69  \param in input spectrum (buf_size long)
[e03f74d]70  \param out output mel coefficients buffer (n_coeffs long)
[8708556]71
72*/
[feb694b]73void aubio_mfcc_do (aubio_mfcc_t * mf, const cvec_t * in, fvec_t * out);
[8708556]74
[7c6c806d]75#ifdef __cplusplus
76}
77#endif
[88199ce]78
[b235c0e]79#endif /* _AUBIO_MFCC_H */
Note: See TracBrowser for help on using the repository browser.