source: src/pitch/pitchmcomb.h @ 1111de1

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

src/pitch/: indent

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2  Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org>
3
4  This file is part of aubio.
5
6  aubio is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10
11  aubio is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
15
16  You should have received a copy of the GNU General Public License
17  along with aubio.  If not, see <http://www.gnu.org/licenses/>.
18
19*/
20
21/** \file
22
23  Pitch detection using multiple-comb filter
24
25  This fundamental frequency estimation algorithm implements spectral
26  flattening, multi-comb filtering and peak histogramming.
27
28  This method was designed by Juan P. Bello and described in:
29
30  Juan-Pablo Bello. ``Towards the Automated Analysis of Simple Polyphonic
31  Music''.  PhD thesis, Centre for Digital Music, Queen Mary University of
32  London, London, UK, 2003.
33
34*/
35
36#ifndef PITCHMCOMB_H
37#define PITCHMCOMB_H
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/** pitch detection object */
44typedef struct _aubio_pitchmcomb_t aubio_pitchmcomb_t;
45
46/** execute pitch detection on an input spectral frame
47 
48  \param p pitch detection object as returned by new_aubio_pitchmcomb
49  \param fftgrain input signal spectrum as computed by aubio_pvoc_do
50 
51*/
52void aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain,
53    fvec_t * output);
54
55/** creation of the pitch detection object
56 
57  \param bufsize size of the input buffer to analyse
58  \param hopsize step size between two consecutive analysis instant
59  \param channels number of channels to analyse
60  \param samplerate sampling rate of the signal
61 
62*/
63aubio_pitchmcomb_t *new_aubio_pitchmcomb (uint_t bufsize, uint_t hopsize,
64    uint_t channels);
65
66/** deletion of the pitch detection object
67 
68  \param p pitch detection object as returned by new_aubio_pitchfcomb
69 
70*/
71void del_aubio_pitchmcomb (aubio_pitchmcomb_t * p);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif/*PITCHMCOMB_H*/ 
Note: See TracBrowser for help on using the repository browser.