- Timestamp:
- Aug 9, 2005, 8:35:14 PM (19 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:
- b1f723d
- Parents:
- a29ad46
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
ra29ad46 r5cf415f 30 30 31 31 /* energy,specdiff,hfc,complexdomain,phase */ 32 aubio_onsetdetection_type type_onset = kl;33 aubio_onsetdetection_type type_onset2 = complexdomain;32 aubio_onsetdetection_type type_onset = aubio_onset_kl; 33 aubio_onsetdetection_type type_onset2 = aubio_onset_complex; 34 34 smpl_t threshold = 0.3; 35 35 smpl_t threshold2 = -90.; … … 140 140 case 'O': /*onset type*/ 141 141 if (strcmp(optarg,"energy") == 0) 142 type_onset = energy;142 type_onset = aubio_onset_energy; 143 143 else if (strcmp(optarg,"specdiff") == 0) 144 type_onset = specdiff;144 type_onset = aubio_onset_specdiff; 145 145 else if (strcmp(optarg,"hfc") == 0) 146 type_onset = hfc;146 type_onset = aubio_onset_hfc; 147 147 else if (strcmp(optarg,"complexdomain") == 0) 148 type_onset = complexdomain; 148 type_onset = aubio_onset_complex; 149 else if (strcmp(optarg,"complex") == 0) 150 type_onset = aubio_onset_complex; 149 151 else if (strcmp(optarg,"phase") == 0) 150 type_onset = phase; 152 type_onset = aubio_onset_phase; 153 else if (strcmp(optarg,"mkl") == 0) 154 type_onset = aubio_onset_mkl; 155 else if (strcmp(optarg,"kl") == 0) 156 type_onset = aubio_onset_kl; 151 157 else { 152 158 debug("could not get onset type.\n");
Note: See TracChangeset
for help on using the changeset viewer.