From 5a2a6c66beda0cf64fb687834118e78ed268c1b6 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 24 Aug 2014 06:52:23 -0500 Subject: [PATCH] src/pitch/pitch.c: add Hertz as valid unit string --- src/pitch/pitch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pitch/pitch.c b/src/pitch/pitch.c index e32673da..e5b44580 100644 --- a/src/pitch/pitch.c +++ b/src/pitch/pitch.c @@ -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) -- 2.11.0