ref: 134cd3a1b76f29e6e2f888da59da9ce6c68cce44
parent: 8a22fc4c7d74012520cb510aecccfc71cafecac1
author: Paul Brossier <piem@piem.org>
date: Sat Dec 7 06:27:45 EST 2013
examples/aubiopitch.c: add pitch_unit
--- a/examples/aubiopitch.c
+++ b/examples/aubiopitch.c
@@ -54,6 +54,7 @@
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);
@@ -60,6 +61,7 @@
o = new_aubio_pitch (pitch_method, buffer_size, hop_size, samplerate);
if (pitch_tolerance != 0.) aubio_pitch_set_tolerance (o, pitch_tolerance);
+ if (pitch_unit != NULL) aubio_pitch_set_unit (o, pitch_unit);
pitch = new_fvec (1);
wavetable = new_aubio_wavetable (samplerate, hop_size);