projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b9e1da
)
fix signed/unsigned mismatches in pitchfcomb
author
Paul Brossier
<piem@altern.org>
Sat, 3 Jun 2006 15:14:44 +0000
(15:14 +0000)
committer
Paul Brossier
<piem@altern.org>
Sat, 3 Jun 2006 15:14:44 +0000
(15:14 +0000)
fix signed/unsigned mismatches in pitchfcomb
src/pitchfcomb.c
patch
|
blob
|
history
diff --git
a/src/pitchfcomb.c
b/src/pitchfcomb.c
index db72b0e91552256de5f5f37a781da12acccc794b..7b39dc9efe3d29a1dca6fcb8ec52bf0665d68432 100644
(file)
--- a/
src/pitchfcomb.c
+++ b/
src/pitchfcomb.c
@@
-110,7
+110,7
@@
smpl_t aubio_pitchfcomb_detect (aubio_pitchfcomb_t * p, fvec_t * input)
for (harmonic=5; harmonic>1; harmonic--) {
if (peaks[0].freq / peaks[l].freq < harmonic+.02 &&
peaks[0].freq / peaks[l].freq > harmonic-.02) {
- if (harmonic > maxharm &&
+ if (harmonic >
(sint_t)
maxharm &&
peaks[0].db < peaks[l].db/2) {
maxharm = harmonic;
k = l;