From: Paul Brossier Date: Sun, 24 Aug 2014 11:52:23 +0000 (-0500) Subject: src/pitch/pitch.c: add Hertz as valid unit string X-Git-Tag: 0.4.2~67 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5a2a6c66beda0cf64fb687834118e78ed268c1b6;p=aubio.git src/pitch/pitch.c: add Hertz as valid unit string --- 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)