projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69bc171
)
src/pitch/pitch.c: add Hertz as valid unit string
author
Paul Brossier
<piem@piem.org>
Sun, 24 Aug 2014 11:52:23 +0000
(06:52 -0500)
committer
Paul Brossier
<piem@piem.org>
Sun, 24 Aug 2014 11:52:23 +0000
(06:52 -0500)
src/pitch/pitch.c
patch
|
blob
|
history
diff --git
a/src/pitch/pitch.c
b/src/pitch/pitch.c
index
e32673d
..
e5b4458
100644
(file)
--- 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)