This file is indexed.

/usr/include/aubio/pitchdetection.h is in libaubio-dev 0.3.2-4.2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
   Copyright (C) 2003 Paul Brossier

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef PITCHAUTOTCORR_H
#define PITCHAUTOTCORR_H

#ifdef __cplusplus
extern "C" {
#endif

/** \file

  Generic method for pitch detection  

  This file creates the objects required for the computation of the selected
  pitch detection algorithm and output the results, in midi note or Hz.

*/

/** pitch detection algorithm */
typedef enum {
        aubio_pitch_yin,     /**< YIN algorithm */
        aubio_pitch_mcomb,   /**< Multi-comb filter */
        aubio_pitch_schmitt, /**< Schmitt trigger */
        aubio_pitch_fcomb,   /**< Fast comb filter */
        aubio_pitch_yinfft   /**< Spectral YIN */
} aubio_pitchdetection_type;

/** pitch detection output mode */
typedef enum {
        aubio_pitchm_freq,   /**< Frequency (Hz) */
        aubio_pitchm_midi,   /**< MIDI note (0.,127) */
        aubio_pitchm_cent,   /**< Cent */
        aubio_pitchm_bin     /**< Frequency bin (0,bufsize) */
} aubio_pitchdetection_mode;

/** pitch detection object */
typedef struct _aubio_pitchdetection_t aubio_pitchdetection_t;

/** execute pitch detection on an input signal frame
 
  \param p pitch detection object as returned by new_aubio_pitchdetection
  \param ibuf input signal of length hopsize 
 
*/
smpl_t aubio_pitchdetection(aubio_pitchdetection_t * p, fvec_t * ibuf);

/** change yin or yinfft tolerance threshold
  
  default is 0.15 for yin and 0.85 for yinfft
 
*/
void aubio_pitchdetection_set_yinthresh(aubio_pitchdetection_t *p, smpl_t thres);

/** deletion of the pitch detection object
 
  \param p pitch detection object as returned by new_aubio_pitchdetection
 
*/
void del_aubio_pitchdetection(aubio_pitchdetection_t * p);

/** creation of the pitch detection object
 
  \param bufsize size of the input buffer to analyse 
  \param hopsize step size between two consecutive analysis instant 
  \param channels number of channels to analyse
  \param samplerate sampling rate of the signal 
  \param type set pitch detection algorithm
  \param mode set pitch units for output
 
*/
aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize, 
        uint_t hopsize, 
        uint_t channels,
        uint_t samplerate,
        aubio_pitchdetection_type type,
        aubio_pitchdetection_mode mode);

#ifdef __cplusplus
}
#endif

#endif /*PITCHDETECTION_H*/