<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello&nbsp;Joćo,<div>Take a look at example 06 in William;s tID, which does timbral ordering of small grains quite similar to what you are describing.&nbsp;</div><div>I was really happy with what I got, but I had a vaguer idea in mind...</div><div>&nbsp;</div><div>William, is there a way to choose certain "descriptors" for the reordering? Or to give different "weight" to certain parameters?</div><div><br></div><div>Happy 2014, list!</div><div>Zax</div><div><br></div><div><br></div><div><br><div>&nbsp;<br><br><div><hr id="stopSpelling">To: william.brent@gmail.com<br>Date: Fri, 3 Jan 2014 11:30:17 +0100<br>From: jmmmpais@googlemail.com<br>CC: pd-list@iem.at<br>Subject: Re: [PD] suggestions for spectral "weight" anaylsis<br><br>
<style><!--
.ExternalClass {
font-family:'Linux Libertine O';
font-size:13px;
}
--></style>

<div>Hi William and all,</div><div><br></div><div>I thought there would some relevant things in your library. I'll look into your suggestions later.<br></div><div>I don't have a patch that other people can look at, but I can try to explain the context a bit better:</div><div>- I have a sound of ~40s spoken voice. I'm going to split it in fragments (for now 100ms each)&nbsp;and reorder them &nbsp;</div><div>- one of the possibilities of reordering the fragments would be to have a "continuous" timbre change in the end. E.g. going from noisy consonants to clean vowels</div><div>- for the analysis, I guess a mixture of pitch and harmonicity (don't know yet in which order it should be done) would be adequate</div><div><br></div><div>I noticed your objects work in real time. As the analysis is to be done before the performance, I guess I'll either let the sound play throughout to get the analysis data, or then I'll divide the fragments through x analysis patches, to make it run x times faster.</div><div><br></div><div>In this case it is spoken voice, but I guess it could by anything else.</div><div><br></div><div>Best,</div><div><br></div><div>Joćo</div><div><br></div><blockquote style="border-left:#0000FF 2px solid;padding-left:1ex;"><div dir="ltr">Hi Joćo,<div><br></div><div>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.</div>
<div><br></div><div>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.</div><div><br></div></div><div class="ecxgmail_extra">
<br><br><div class="ecxgmail_quote">On Thu, Jan 2, 2014 at 12:38 PM, Joćo Pais <span dir="ltr">&lt;<a href="mailto:jmmmpais@googlemail.com" target="_blank">jmmmpais@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I wanted to ask if there are any suggestions for spectral "weight" analysis.<br>
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.<br>
<br>
Is there any external or patch around that does something similar?<br>
<br>
Thanks,<br>
<br>
jmmmp<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>William Brent<br><a href="http://www.williambrent.com" target="_blank">www.williambrent.com</a><br><br>“Great minds flock together”<br>Conflations: conversational idiom for the 21st century<br>
<br><a href="http://www.conflations.com" target="_blank">www.conflations.com</a>
</div>
</blockquote><br><br><br>_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list</div></div></div>                                               </div></body>
</html>