source: src/pitch/pitchschmitt.h @ 3388e1a

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5sampleryinfft+
Last change on this file since 3388e1a was 6f42c16, checked in by Paul Brossier <piem@piem.org>, 9 years ago

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

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[7a04950]1/*
[b235c0e]2  Copyright (C) 2003-2013 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
[6f42c16]37#ifndef AUBIO_PITCHSCHMITT_H
38#define AUBIO_PITCHSCHMITT_H
[7a04950]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*/
[ce3ff2b]54void aubio_pitchschmitt_do (aubio_pitchschmitt_t * p, const fvec_t * samples_in,
[69b11d8]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
[6f42c16]75#endif /* AUBIO_PITCHSCHMITT_H */
Note: See TracBrowser for help on using the repository browser.