- Timestamp:
- Oct 15, 2009, 9:06:56 PM (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:
- 28c162c
- Parents:
- e8ae95ac
- Location:
- src/pitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchdetection.c
re8ae95ac r93177fa 242 242 break; 243 243 } 244 return 0;245 } 246 247 voidaubio_pitchdetection_set_tolerance(aubio_pitchdetection_t *p, smpl_t tol) {244 return AUBIO_OK; 245 } 246 247 uint_t aubio_pitchdetection_set_tolerance(aubio_pitchdetection_t *p, smpl_t tol) { 248 248 switch(p->type) { 249 249 case aubio_pitch_yin: … … 256 256 break; 257 257 } 258 return AUBIO_OK; 258 259 } 259 260 -
src/pitch/pitchdetection.h
re8ae95ac r93177fa 38 38 /** execute pitch detection on an input signal frame 39 39 40 \param p pitch detection object as returned by new_aubio_pitchdetection 41 \param ibuf input signal of length hopsize 40 \param o pitch detection object as returned by new_aubio_pitchdetection() 41 \param in input signal of size [hopsize x channels] 42 \param out output pitch candidates of size [1 x channes] 42 43 43 44 */ 44 void aubio_pitchdetection_do (aubio_pitchdetection_t * p, fvec_t * ibuf, fvec_t * obuf); 45 void aubio_pitchdetection_do (aubio_pitchdetection_t * o, fvec_t * in, 46 fvec_t * out); 45 47 46 48 /** change yin or yinfft tolerance threshold 47 49 48 default is 0.15 for yin and 0.85 for yinfft 50 \param o pitch detection object as returned by new_aubio_pitchdetection() 51 \param tol tolerance default is 0.15 for yin and 0.85 for yinfft 49 52 50 53 */ 51 void aubio_pitchdetection_set_tolerance(aubio_pitchdetection_t *p, smpl_t tol); 54 uint_t aubio_pitchdetection_set_tolerance (aubio_pitchdetection_t * o, 55 smpl_t tol); 52 56 53 57 /** deletion of the pitch detection object 54 58 55 \param p pitch detection object as returned by new_aubio_pitchdetection59 \param o pitch detection object as returned by new_aubio_pitchdetection() 56 60 57 61 */ 58 void del_aubio_pitchdetection (aubio_pitchdetection_t * p);62 void del_aubio_pitchdetection (aubio_pitchdetection_t * o); 59 63 60 64 /** creation of the pitch detection object 61 65 66 \param mode set pitch detection algorithm 62 67 \param bufsize size of the input buffer to analyse 63 68 \param hopsize step size between two consecutive analysis instant 64 69 \param channels number of channels to analyse 65 70 \param samplerate sampling rate of the signal 66 \param type set pitch detection algorithm 71 72 */ 73 aubio_pitchdetection_t *new_aubio_pitchdetection (char_t * mode, 74 uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate); 75 76 /** set the output unit of the pitch detection object 77 78 \param o pitch detection object as returned by new_aubio_pitchdetection() 67 79 \param mode set pitch units for output 68 80 69 81 */ 70 aubio_pitchdetection_t *new_aubio_pitchdetection (char_t * pitch_mode, 71 uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate); 72 73 /** set the output unit of the pitch detection object */ 74 uint_t aubio_pitchdetection_set_unit (aubio_pitchdetection_t *p, char_t * pitch_unit); 82 uint_t aubio_pitchdetection_set_unit (aubio_pitchdetection_t * o, 83 char_t * mode); 75 84 76 85 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.