src/pitch/pitch.c: add Hertz as valid unit string
authorPaul Brossier <piem@piem.org>
Sun, 24 Aug 2014 11:52:23 +0000 (06:52 -0500)
committerPaul Brossier <piem@piem.org>
Sun, 24 Aug 2014 11:52:23 +0000 (06:52 -0500)
src/pitch/pitch.c

index e32673d..e5b4458 100644 (file)
@@ -238,6 +238,8 @@ aubio_pitch_set_unit (aubio_pitch_t * p, char_t * pitch_unit)
     pitch_mode = aubio_pitchm_freq;
   else if (strcmp (pitch_unit, "hertz") == 0)
     pitch_mode = aubio_pitchm_freq;
+  else if (strcmp (pitch_unit, "Hertz") == 0)
+    pitch_mode = aubio_pitchm_freq;
   else if (strcmp (pitch_unit, "Hz") == 0)
     pitch_mode = aubio_pitchm_freq;
   else if (strcmp (pitch_unit, "f0") == 0)