Changeset edca23f
- Timestamp:
- May 22, 2005, 12:40:37 PM (20 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:
- 9cf2833
- Parents:
- 0b530cb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
r0b530cb redca23f 59 59 smpl_t pitch = 0.; 60 60 aubio_pitchdetection_t * pitchdet; 61 aubio_pitchdetection_type mode = yin; //mcomb61 aubio_pitchdetection_type mode = aubio_yin; // aubio_mcomb 62 62 uint_t median = 6; 63 63 … … 218 218 219 219 if (usepitch) { 220 pitchdet = new_aubio_pitchdetection(buffer_size*4, overlap_size, channels, samplerate, mode, freq); 220 pitchdet = new_aubio_pitchdetection(buffer_size*4, 221 overlap_size, channels, samplerate, mode, aubio_freq); 221 222 222 223 if (median) { -
src/pitchdetection.c
r0b530cb redca23f 53 53 p->bufsize = bufsize; 54 54 switch(p->type) { 55 case yin:55 case aubio_yin: 56 56 p->buf = new_fvec(bufsize,channels); 57 57 p->yin = new_fvec(bufsize/2,channels); 58 58 break; 59 case mcomb:59 case aubio_mcomb: 60 60 p->pv = new_aubio_pvoc(bufsize, hopsize, channels); 61 61 p->fftgrain = new_cvec(bufsize, channels); … … 71 71 void del_aubio_pitchdetection(aubio_pitchdetection_t * p) { 72 72 switch(p->type) { 73 case yin:73 case aubio_yin: 74 74 del_fvec(p->yin); 75 75 del_fvec(p->buf); 76 76 break; 77 case mcomb:77 case aubio_mcomb: 78 78 del_aubio_pvoc(p->pv); 79 79 del_cvec(p->fftgrain); … … 92 92 uint_t i,j = 0; 93 93 switch(p->type) { 94 case yin:94 case aubio_yin: 95 95 /* do sliding window blocking */ 96 96 for (i=0;i<p->buf->channels;i++){ … … 111 111 } 112 112 break; 113 case mcomb:113 case aubio_mcomb: 114 114 aubio_filter_do(p->filter,ibuf); 115 115 aubio_filter_do(p->filter,ibuf); -
src/pitchdetection.h
r0b530cb redca23f 25 25 26 26 typedef enum { 27 yin,28 mcomb27 aubio_yin, 28 aubio_mcomb 29 29 } aubio_pitchdetection_type; 30 30 31 31 typedef enum { 32 freq,33 midi,34 cent,35 bin32 aubio_freq, 33 aubio_midi, 34 aubio_cent, 35 aubio_bin 36 36 } aubio_pitchdetection_mode; 37 37
Note: See TracChangeset
for help on using the changeset viewer.