]> git.sesse.net Git - pitch/commit
Lots of small but important changes to undertone detection:
authorsgunderson@bigfoot.com <>
Mon, 19 Jul 2010 22:25:08 +0000 (00:25 +0200)
committersgunderson@bigfoot.com <>
Mon, 19 Jul 2010 22:25:08 +0000 (00:25 +0200)
commit2acfa0424af341c8c2aa7446dfb720aa5e74db31
tree2f3d4002389f5b85779cc744f3855183b4d0ccad
parentf09f984c17ef3163de0296aa415828a5249a095b
Lots of small but important changes to undertone detection:

 - When comparing peak amplitudes, compare interpolated peaks, not raw bins.
 - Find the best candidate bin _before_ sliding up or down one bin.
 - Verify that a candidate bin is indeed a local peak before testing it.
 - Remove some pointless out-of-bounds checks.
 - Formatting changes to undertone debug printouts.
 - Change the undertone limit from 10dB to 20dB.

Seems to work quite a lot better, especially for the low E string.
It's still not perfect, of course, and I'm sure there are regression
situations, but I think it's a significant improvement.
pitchdetector.cpp