pitchfinder icon indicating copy to clipboard operation
pitchfinder copied to clipboard

Does this support the zero-padding trick?

Open nicola opened this issue 4 years ago • 2 comments

Hello here, I am aware that there is a trick to keep the buffer size larger by zero-padding the first N bytes. Does this provide such trick or will I have to implement it off this?

nicola avatar Apr 19 '20 21:04 nicola

I'm not aware of this trick, so, I guess I'm not sure!

peterkhayes avatar Apr 20 '20 17:04 peterkhayes

This may be wrong, but I think this trick might not work very well because these algorithms operate mostly in the time domain. This trick is more useful when going from the time domain to the frequency domain or vice-versa.

As some of these algorithms use peak detection as a method of pitch detection, it may cause problems if the zero padding causes a rapid drop to 0 from the previous value. This could cause a new peak, which would not necessarily be caused by pitch.

MysteryPancake avatar Aug 18 '20 10:08 MysteryPancake