Changeset ab7212f for examples/parse_args.h
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.