00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PITCHAUTOTCORR_H
00020 #define PITCHAUTOTCORR_H
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00036 typedef enum {
00037 aubio_pitch_yin,
00038 aubio_pitch_mcomb,
00039 aubio_pitch_schmitt,
00040 aubio_pitch_fcomb,
00041 aubio_pitch_yinfft
00042 } aubio_pitchdetection_type;
00043
00045 typedef enum {
00046 aubio_pitchm_freq,
00047 aubio_pitchm_midi,
00048 aubio_pitchm_cent,
00049 aubio_pitchm_bin
00050 } aubio_pitchdetection_mode;
00051
00053 typedef struct _aubio_pitchdetection_t aubio_pitchdetection_t;
00054
00061 smpl_t aubio_pitchdetection(aubio_pitchdetection_t * p, fvec_t * ibuf);
00062
00068 void aubio_pitchdetection_set_yinthresh(aubio_pitchdetection_t *p, smpl_t thres);
00069
00075 void del_aubio_pitchdetection(aubio_pitchdetection_t * p);
00076
00087 aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize,
00088 uint_t hopsize,
00089 uint_t channels,
00090 uint_t samplerate,
00091 aubio_pitchdetection_type type,
00092 aubio_pitchdetection_mode mode);
00093
00094 #ifdef __cplusplus
00095 }
00096 #endif
00097
00098 #endif