examples/aubiopitch.c: fix pitch mode selection
authorPaul Brossier <piem@piem.org>
Sat, 16 Mar 2013 02:23:10 +0000 (21:23 -0500)
committerPaul Brossier <piem@piem.org>
Sat, 16 Mar 2013 02:23:10 +0000 (21:23 -0500)
examples/aubiopitch.c

index 5ee1db13f0681e2f1076259a7772a3f4da1f6570..0abe134a068b90d3c76a57c2816a12cff28e8391 100644 (file)
@@ -63,7 +63,7 @@ static void process_print (void) {
 int main(int argc, char **argv) {
   examples_common_init(argc,argv);
 
-  o = new_aubio_pitch (onset_mode, buffer_size, overlap_size, samplerate);
+  o = new_aubio_pitch (pitch_mode, buffer_size, overlap_size, samplerate);
   pitch = new_fvec (1);
 
   examples_common_process(aubio_process,process_print);