source: src/pitch/pitchschmitt.h @ 5d16185

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

src/*/*.h: add link to examples, remove trailing spaces, improve documentation

  • Property mode set to 100644
File size: 2.0 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
[69b11d8]21/** \file
22
23   Pitch detection using a Schmitt trigger
[78fa561]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.
[69b11d8]30
31   See http://delysid.org/tuneit.html
32
33   \example pitch/test-pitchschmitt.c
[78fa561]34
35*/
36
[7a04950]37#ifndef _PITCHSCHMITT_H
38#define _PITCHSCHMITT_H
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
[78fa561]44/** pitch detection object */
[7a04950]45typedef struct _aubio_pitchschmitt_t aubio_pitchschmitt_t;
46
[69b11d8]47/** execute pitch detection on an input buffer
48
49  \param p pitch detection object as returned by new_aubio_pitchschmitt
50  \param samples_in input signal vector (length as specified at creation time)
51  \param cands_out pitch period estimates, in samples
52
[78fa561]53*/
[69b11d8]54void aubio_pitchschmitt_do (aubio_pitchschmitt_t * p, fvec_t * samples_in,
55    fvec_t * cands_out);
[63f3c70]56
[78fa561]57/** creation of the pitch detection object
[69b11d8]58
59  \param buf_size size of the input buffer to analyse
60
[78fa561]61*/
[3ac7cb0]62aubio_pitchschmitt_t *new_aubio_pitchschmitt (uint_t buf_size);
[63f3c70]63
[78fa561]64/** deletion of the pitch detection object
[69b11d8]65
66  \param p pitch detection object as returned by new_aubio_pitchschmitt
67
[78fa561]68*/
[63f3c70]69void del_aubio_pitchschmitt (aubio_pitchschmitt_t * p);
[7a04950]70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* _PITCHSCHMITT_H */
76
Note: See TracBrowser for help on using the repository browser.