source: src/pitch/pitchmcomb.h

Last change on this file was 6f42c16, checked in by Paul Brossier <piem@piem.org>, 8 years ago

src/: change c header identifiers (see #35)

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[96fb8ad]1/*
[b235c0e]2  Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
[96fb8ad]3
[e6a78ea]4  This file is part of aubio.
[96fb8ad]5
[e6a78ea]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.
[96fb8ad]10
[e6a78ea]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/>.
[96fb8ad]18
19*/
20
21/** \file
[7f3ccc5e]22
23  Pitch detection using multiple-comb filter
24
25  This fundamental frequency estimation algorithm implements spectral
[69b11d8]26  flattening, multi-comb filtering and peak histogramming.
[7f3ccc5e]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
[69b11d8]34  \example pitch/test-pitchmcomb.c
35
[7f3ccc5e]36*/
[96fb8ad]37
[6f42c16]38#ifndef AUBIO_PITCHMCOMB_H
39#define AUBIO_PITCHMCOMB_H
[96fb8ad]40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
[7f3ccc5e]45/** pitch detection object */
[96fb8ad]46typedef struct _aubio_pitchmcomb_t aubio_pitchmcomb_t;
47
[7f3ccc5e]48/** execute pitch detection on an input spectral frame
[69b11d8]49
[7f3ccc5e]50  \param p pitch detection object as returned by new_aubio_pitchmcomb
[69b11d8]51  \param in_fftgrain input signal spectrum as computed by aubio_pvoc_do
52  \param out_cands pitch candidate frequenciess, in bins
53
[7f3ccc5e]54*/
[ce3ff2b]55void aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, const cvec_t * in_fftgrain,
[69b11d8]56    fvec_t * out_cands);
[fddfa64]57
[7f3ccc5e]58/** creation of the pitch detection object
[69b11d8]59
60  \param buf_size size of the input buffer to analyse
61  \param hop_size step size between two consecutive analysis instant
62
[7f3ccc5e]63*/
[168337e]64aubio_pitchmcomb_t *new_aubio_pitchmcomb (uint_t buf_size, uint_t hop_size);
[fddfa64]65
[7f3ccc5e]66/** deletion of the pitch detection object
[69b11d8]67
[7f3ccc5e]68  \param p pitch detection object as returned by new_aubio_pitchfcomb
[69b11d8]69
[7f3ccc5e]70*/
[fddfa64]71void del_aubio_pitchmcomb (aubio_pitchmcomb_t * p);
[96fb8ad]72
73#ifdef __cplusplus
74}
75#endif
76
[6f42c16]77#endif /* AUBIO_PITCHMCOMB_H */
Note: See TracBrowser for help on using the repository browser.