Changeset 75a0f40
- Timestamp:
- Sep 22, 2009, 5:37:36 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:
- 2062e48
- Parents:
- 55b7cb4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
r55b7cb4 r75a0f40 105 105 " -s --silence Select silence threshold.\n" 106 106 " -p --pitch Select pitch detection algorithm.\n" 107 " -B --bufsize Set buffer size.\n" 107 108 " -H --hopsize Set hopsize.\n" 108 109 " -a --averaging Use averaging.\n" … … 112 113 113 114 int parse_args (int argc, char **argv) { 114 const char *options = "hvjo:i:O:t:s:p: H:a";115 const char *options = "hvjo:i:O:t:s:p:B:H:a"; 115 116 int next_option; 116 117 struct option long_options[] = … … 126 127 {"pitch" , 1, NULL, 'p'}, 127 128 {"averaging", 0, NULL, 'a'}, 129 {"bufsize", 1, NULL, 'B'}, 128 130 {"hopsize", 1, NULL, 'H'}, 129 131 {NULL , 0, NULL, 0} … … 212 214 averaging = 1; 213 215 break; 216 case 'B': 217 buffer_size = atoi(optarg); 218 break; 214 219 case 'H': 215 220 overlap_size = atoi(optarg); … … 221 226 break; 222 227 default: /*something else unexpected */ 228 fprintf(stderr, "Error parsing option '%c'\n", next_option); 223 229 abort (); 224 230 }
Note: See TracChangeset
for help on using the changeset viewer.