source: src/pitch/pitchschmitt.h @ 16bd78a

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

src/: cleanup variable names in prototypes

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[7a04950]1/*
[e6a78ea]2  Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org>
[7a04950]3
[e6a78ea]4  This file is part of aubio.
[7a04950]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.
[7a04950]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/>.
[7a04950]18
19*/
20
[78fa561]21/** \file
22
23   Pitch detection using a Schmitt trigger
24 
25   This pitch extraction method implements a Schmitt trigger to estimate the
26   period of a signal.
27
28   This file was derived from the tuneit project, written by Mario Lang to
29   detect the fundamental frequency of a sound.
30   
31   see http://delysid.org/tuneit.html
32
33*/
34
[7a04950]35#ifndef _PITCHSCHMITT_H
36#define _PITCHSCHMITT_H
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
[78fa561]42/** pitch detection object */
[7a04950]43typedef struct _aubio_pitchschmitt_t aubio_pitchschmitt_t;
44
[78fa561]45/** execute pitch detection on an input buffer
46 
47  \param p pitch detection object as returned by new_aubio_pitchschmitt
48  \param input input signal window (length as specified at creation time)
[f162cf9]49  \param output pitch period estimates, in samples
[78fa561]50 
51*/
[63f3c70]52void aubio_pitchschmitt_do (aubio_pitchschmitt_t * p, fvec_t * in,
53    fvec_t * out);
54
[78fa561]55/** creation of the pitch detection object
56 
[3ac7cb0]57  \param buf_size size of the input buffer to analyse
[78fa561]58 
59*/
[3ac7cb0]60aubio_pitchschmitt_t *new_aubio_pitchschmitt (uint_t buf_size);
[63f3c70]61
[78fa561]62/** deletion of the pitch detection object
63 
64  \param p pitch detection object as returned by new_aubio_pitchschmitt
65 
66*/
[63f3c70]67void del_aubio_pitchschmitt (aubio_pitchschmitt_t * p);
[7a04950]68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* _PITCHSCHMITT_H */
74
Note: See TracBrowser for help on using the repository browser.