Changeset 41b985f for examples/parse_args.h
- Timestamp:
- Mar 12, 2017, 11:26:24 AM (7 years ago)
- Branches:
- sampler
- Children:
- bde49c4a
- Parents:
- 71f2e5f (diff), 67b6618 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/parse_args.h
r71f2e5f r41b985f 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 second; default=0.012\n" 94 97 #endif /* PROG_HAS_ONSET */ 95 98 #ifdef PROG_HAS_PITCH … … 115 118 #ifdef PROG_HAS_JACK 116 119 " -j --jack use Jack\n" 120 #if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) 121 " -N --miditap-note MIDI note; default=69.\n" 122 " -V --miditap-velo MIDI velocity; default=65.\n" 123 #endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */ 117 124 #endif /* PROG_HAS_JACK */ 118 125 " -v --verbose be verbose\n" … … 134 141 #ifdef PROG_HAS_JACK 135 142 "j" 143 #if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) 144 "N:V:" 145 #endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */ 136 146 #endif /* PROG_HAS_JACK */ 137 147 #ifdef PROG_HAS_OUTPUT … … 139 149 #endif /* PROG_HAS_OUTPUT */ 140 150 #ifdef PROG_HAS_ONSET 141 "O:t: "151 "O:t:M:" 142 152 #endif /* PROG_HAS_ONSET */ 143 153 #ifdef PROG_HAS_PITCH … … 162 172 #ifdef PROG_HAS_JACK 163 173 {"jack", 0, NULL, 'j'}, 174 #if defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) 175 {"miditap-note", 1, NULL, 'N'}, 176 {"miditap-velo", 1, NULL, 'V'}, 177 #endif /* PROG_HAS_ONSET !PROG_HAS_PITCH */ 164 178 #endif /* PROG_HAS_JACK */ 165 179 #ifdef PROG_HAS_OUTPUT … … 169 183 {"onset", 1, NULL, 'O'}, 170 184 {"onset-threshold", 1, NULL, 't'}, 185 {"onset-minioi", 1, NULL, 'M'}, 171 186 #endif /* PROG_HAS_ONSET */ 172 187 #ifdef PROG_HAS_PITCH … … 204 219 usejack = 1; 205 220 break; 221 case 'N': 222 miditap_note = (smpl_t) atoi (optarg); 223 break; 224 case 'V': 225 miditap_velo = (smpl_t) atoi (optarg); 226 break; 206 227 case 'i': 207 228 source_uri = optarg; … … 227 248 case 't': /* threshold value for onset */ 228 249 onset_threshold = (smpl_t) atof (optarg); 250 break; 251 case 'M': /* minimum inter-onset-interval */ 252 onset_minioi = (smpl_t) atof (optarg); 229 253 break; 230 254 case 'p':
Note: See TracChangeset
for help on using the changeset viewer.