Changeset ca1abdd for src/pitch/pitch.h
- Timestamp:
- Oct 19, 2009, 10:51:59 AM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- b14107f
- Parents:
- 9f07d52
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitch.h
r9f07d52 rca1abdd 17 17 */ 18 18 19 #ifndef PITCH AUTOTCORR_H20 #define PITCH AUTOTCORR_H19 #ifndef PITCH_H 20 #define PITCH_H 21 21 22 22 #ifdef __cplusplus … … 34 34 35 35 /** pitch detection object */ 36 typedef struct _aubio_pitch detection_t aubio_pitchdetection_t;36 typedef struct _aubio_pitch_t aubio_pitch_t; 37 37 38 38 /** execute pitch detection on an input signal frame 39 39 40 \param o pitch detection object as returned by new_aubio_pitch detection()40 \param o pitch detection object as returned by new_aubio_pitch() 41 41 \param in input signal of size [hopsize x channels] 42 42 \param out output pitch candidates of size [1 x channes] 43 43 44 44 */ 45 void aubio_pitch detection_do (aubio_pitchdetection_t * o, fvec_t * in,45 void aubio_pitch_do (aubio_pitch_t * o, fvec_t * in, 46 46 fvec_t * out); 47 47 48 48 /** change yin or yinfft tolerance threshold 49 49 50 \param o pitch detection object as returned by new_aubio_pitch detection()50 \param o pitch detection object as returned by new_aubio_pitch() 51 51 \param tol tolerance default is 0.15 for yin and 0.85 for yinfft 52 52 53 53 */ 54 uint_t aubio_pitch detection_set_tolerance (aubio_pitchdetection_t * o,54 uint_t aubio_pitch_set_tolerance (aubio_pitch_t * o, 55 55 smpl_t tol); 56 56 57 57 /** deletion of the pitch detection object 58 58 59 \param o pitch detection object as returned by new_aubio_pitch detection()59 \param o pitch detection object as returned by new_aubio_pitch() 60 60 61 61 */ 62 void del_aubio_pitch detection (aubio_pitchdetection_t * o);62 void del_aubio_pitch (aubio_pitch_t * o); 63 63 64 64 /** creation of the pitch detection object … … 71 71 72 72 */ 73 aubio_pitch detection_t *new_aubio_pitchdetection(char_t * mode,73 aubio_pitch_t * new_aubio_pitch (char_t * mode, 74 74 uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate); 75 75 76 76 /** set the output unit of the pitch detection object 77 77 78 \param o pitch detection object as returned by new_aubio_pitch detection()78 \param o pitch detection object as returned by new_aubio_pitch() 79 79 \param mode set pitch units for output 80 80 81 81 */ 82 uint_t aubio_pitch detection_set_unit (aubio_pitchdetection_t * o,82 uint_t aubio_pitch_set_unit (aubio_pitch_t * o, 83 83 char_t * mode); 84 84 … … 87 87 #endif 88 88 89 #endif /*PITCH DETECTION_H*/89 #endif /*PITCH_H*/
Note: See TracChangeset
for help on using the changeset viewer.