[PD-dev] finding the centroid of a sound

Mark Kenny 9839623 at student.ul.ie
Tue Jul 27 18:58:18 CEST 2004


Hello all,

I have been trying to find the centroid of a sound for the last few 
days.  I am using the fiddle object to capture raw pitch and amplitude, 
from this Im using the equation sum[FiAi]/sum[Ai], where F=freq, A=amp 
and i=frame no., this then allows me to get the average centroid value 
by summing them and dividing by number of frames.

The problem Im having is that it's just pulling out the fundamental 
freq of the sound, I think this has something to do with using the 
fiddle object, I was looking and there doesn't seem to be an fftin~ 
object for pd, max/msp also has a centroid object, no such luck with PD 
i guess!?  Is there any object in PD that can supply real, imaginary 
and bin index on the fly like with the fftin~ object in MAX/MSP??

Thanks for  your time

Mark





More information about the Pd-dev mailing list