Hi João, A measure that would give something near 1.0 for white noise and near 0 for a sine wave would be "spectral flatness", which is in the timbreID library. But if you're looking to see how well a spectrum's partials line up harmonically, you won't find that in timbreID yet. One quick option would be to use sigmund~ to get the current pitch, then search the spectrum for the amount of energy in bin ranges related to the expected set of harmonics. Compare that with energy in non-harmonic bins. But then, for things like gongs that sound "pitchy" but have inharmonic spectra, that won't be much help. Depends a lot on what you're trying to do.
You *might* find specSpread~ useful, which measures how widely or tightly energy is concentrated around the spectrum's center of gravity. It's in units of Hz though. On Thu, Jan 2, 2014 at 12:38 PM, João Pais <[email protected]> wrote: > Hello, > > I wanted to ask if there are any suggestions for spectral "weight" > analysis. > With "weight" I mean a factor which would measure the harmonicity of a > sound - e.g. white noise being 1, and a sinus/silence 0. Surely it exists a > propper word for this already, but I don't know one. > > Is there any external or patch around that does something similar? > > Thanks, > > jmmmp > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list > -- William Brent www.williambrent.com “Great minds flock together” Conflations: conversational idiom for the 21st century www.conflations.com
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
