#include "utils.h"
#define PROG_HAS_PITCH 1
#define PROG_HAS_OUTPUT 1
#define PROG_HAS_JACK 1
#include "parse_args.h"
void
if (mix_input)
else
}
void
process_print (void) {
outmsg("%f %f\n",(blocks)
*hop_size/(float)samplerate, pitch_found);
}
int main(int argc, char **argv) {
buffer_size = 2048;
examples_common_init(argc,argv);
verbmsg ("using source: %s at %dHz\n", source_uri, samplerate);
verbmsg ("pitch method: %s, ", pitch_method);
verbmsg ("pitch unit: %s, ", pitch_unit);
verbmsg ("buffer_size: %d, ", buffer_size);
verbmsg ("hop_size: %d, ", hop_size);
verbmsg ("tolerance: %f\n", pitch_tolerance);
if (pitch_tolerance != 0.)
if (silence_threshold != -90.)
if (pitch_unit != NULL)
examples_common_process((aubio_process_func_t)process_block,process_print);
examples_common_del();
return 0;
}