pvscent — Calculate the spectral centroid of a signal.
Canculate the spectral centrols of a signal from its discrete Fourier transform.
kcent pvscent fsig
kcent -- the spectral centroid
fsig -- an input pv stream
Example 354. Example
ifftsize = 1024 iwtype = 1 /* cleaner with hanning window */ a1 soundin "input.wav" fsig pvsanal a1, ifftsize, ifftsize/4, ifftsize, iwtype kcen pvscent fsig adm oscil 32000, kcen, 1 out adm
New plugin in version 5
March 2005.