extern char_t * pitch_method;
extern char_t * pitch_unit;
extern smpl_t pitch_tolerance;
+// time stuff
+extern char_t * time_format;
// tempo stuff
extern char_t * tempo_method;
// more general stuff
#endif /* PROG_HAS_PITCH */
" -s --silence select silence threshold\n"
" a value in dB, for instance -70, or -100; default=-90\n"
+ " -T --time-format select time values output format\n"
+ " (samples, ms, seconds) default=seconds\n"
#ifdef PROG_HAS_OUTPUT
" -m --mix-input mix input signal with output signal\n"
" input signal will be added to output synthesis\n"
#ifdef PROG_HAS_PITCH
"p:u:l:"
#endif /* PROG_HAS_PITCH */
+ "T:"
"s:mf";
int next_option;
struct option long_options[] = {
{"pitch-tolerance", 1, NULL, 'l'},
#endif /* PROG_HAS_PITCH */
{"silence", 1, NULL, 's'},
+ {"time-format", 1, NULL, 'T'},
{"mix-input", 0, NULL, 'm'},
{"force-overwrite", 0, NULL, 'f'},
{NULL, 0, NULL, 0}
case 'l':
pitch_tolerance = (smpl_t) atof (optarg);
break;
+ case 'T':
+ time_format = optarg;
+ break;
case 's': /* silence threshold */
silence_threshold = (smpl_t) atof (optarg);
break;