Changeset ab7212f
- Timestamp:
- Dec 11, 2016, 4:49:13 PM (8 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, sampler, yinfft+
- Children:
- ec45138
- Parents:
- 1186c98
- Location:
- examples
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/aubionotes.c
r1186c98 rab7212f 70 70 if (notes == NULL) { ret = 1; goto beach; } 71 71 72 if (onset_minioi != 0.) errmsg ("warning: minioio not supported yet\n"); 73 72 74 examples_common_process((aubio_process_func_t)process_block, process_print); 73 75 -
examples/aubioonset.c
r1186c98 rab7212f 75 75 if (silence_threshold != -90.) 76 76 aubio_onset_set_silence (o, silence_threshold); 77 if (onset_minioi != 0.) 78 aubio_onset_set_minioi_ms (o, onset_minioi); 77 79 78 80 onset = new_fvec (1); -
examples/aubiotrack.c
r1186c98 rab7212f 81 81 // aubio_tempo_set_silence(tempo, -1000.); 82 82 if (onset_threshold != 0.) aubio_tempo_set_threshold (tempo, onset_threshold); 83 if (onset_minioi != 0.) errmsg ("warning: minioio not supported yet\n"); 83 84 84 85 wavetable = new_aubio_wavetable (samplerate, hop_size); -
examples/parse_args.h
r1186c98 rab7212f 37 37 extern char_t * onset_method; 38 38 extern smpl_t onset_threshold; 39 extern smpl_t onset_minioi; 39 40 // pitch stuff 40 41 extern char_t * pitch_method; … … 92 93 " -t --onset-threshold set onset detection threshold\n" 93 94 " a value between 0.1 (more detections) and 1 (less); default=0.3\n" 95 " -M --minioi set minimum inter-onset interval\n" 96 " a value in millisecond; default=12.\n" 94 97 #endif /* PROG_HAS_ONSET */ 95 98 #ifdef PROG_HAS_PITCH … … 139 142 #endif /* PROG_HAS_OUTPUT */ 140 143 #ifdef PROG_HAS_ONSET 141 "O:t: "144 "O:t:M:" 142 145 #endif /* PROG_HAS_ONSET */ 143 146 #ifdef PROG_HAS_PITCH … … 169 172 {"onset", 1, NULL, 'O'}, 170 173 {"onset-threshold", 1, NULL, 't'}, 174 {"onset-minioi", 1, NULL, 'M'}, 171 175 #endif /* PROG_HAS_ONSET */ 172 176 #ifdef PROG_HAS_PITCH … … 228 232 onset_threshold = (smpl_t) atof (optarg); 229 233 break; 234 case 'M': /* threshold value for onset */ 235 onset_minioi = (smpl_t) atof (optarg); 236 break; 230 237 case 'p': 231 238 pitch_method = optarg; -
examples/utils.c
r1186c98 rab7212f 44 44 char_t * onset_method = "default"; 45 45 smpl_t onset_threshold = 0.0; // will be set if != 0. 46 smpl_t onset_minioi = 0.0; // will be set if != 0. 46 47 // pitch stuff 47 48 char_t * pitch_unit = "default";
Note: See TracChangeset
for help on using the changeset viewer.