- Timestamp:
- Jun 7, 2005, 6:56:39 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:
- b31f262
- Parents:
- 97b8c3d
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubiotrack.c
r97b8c3d r0ce9acc3 27 27 aubio_beattracking_t * bt = NULL; 28 28 uint_t winlen = 512; 29 uint_t step = 128; 30 uint_t laglen = 128; 31 uint_t rayparam = 43; 29 uint_t step = 0; 32 30 uint_t istactus = 0; 33 31 … … 84 82 if (pos2 == btoutput[i]) { 85 83 //printf("pos2: %d\n", pos2); 84 //printf("tempo:\t%3.5f bpm \n", 85 //60.*44100./overlap_size/abs(btoutput[2]-btoutput[1])); 86 86 /* test for silence */ 87 87 if (aubio_silence_detection(ibuf, threshold2)==1) { … … 123 123 /* override default settings */ 124 124 examples_common_init(argc,argv); 125 winlen = SQR(512)/overlap_size; 125 126 126 127 dfframe = new_fvec(winlen,channels); 128 step = winlen/4; 127 129 out = new_fvec(step,channels); 130 128 131 /* test input : impulses starting from 15, at intervals of 50 samples */ 129 132 //for(i=0;i<16;i++){ … … 131 134 //} 132 135 133 bt = new_aubio_beattracking(winlen,step, laglen, 134 rayparam, channels); 136 bt = new_aubio_beattracking(winlen,channels); 135 137 136 138 examples_common_process(aubio_process,process_print); -
examples/utils.c
r97b8c3d r0ce9acc3 98 98 99 99 int parse_args (int argc, char **argv) { 100 const char *options = "hvjo:i:O:t:s: a";100 const char *options = "hvjo:i:O:t:s:H:a"; 101 101 int next_option; 102 102 struct option long_options[] = … … 111 111 {"silence" , 0, NULL, 's'}, 112 112 {"averaging", 0, NULL, 'a'}, 113 {"hopsize", 0, NULL, 'H'}, 113 114 {NULL , 0, NULL, 0} 114 115 }; … … 169 170 averaging = 1; 170 171 break; 172 case 'H': 173 overlap_size = atoi(optarg); 174 break; 171 175 case '?': /* unknown options */ 172 176 usage(stderr, 1);
Note: See TracChangeset
for help on using the changeset viewer.