<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default" style="font-size:13px">Hi Ronni,</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">
Yes, in fact that&#39;s exactly what I&#39;m doing in the csound algorithm. I have a user-defined array, one array of bin amplitudes and one array of bin frequencies, both written from the analysis window. </div><div class="gmail_default" style="font-size:13px">
<br></div><div class="gmail_default" style="font-size:13px">The thing is that you need to deal with the amplitudes too. Simply moving the frequency value from one bin to another doesn&#39;t work, because each bin can only represent a narrow frequency band. So you need to also move the amplitude content of the bin too. </div>
<div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-size:13px">Best,</div><div class="gmail_default" style="font-size:13px">Peiman</div></div></div><div class="gmail_extra"><br clear="all">
<div><div dir="ltr"><div><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="comic sans ms, sans-serif"><b><a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> || <a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">RSS Feed</a> || <a href="http://spectralkimia.wordpress.com/" target="_blank">Concert News</a></b></font></div>
</div></div>
<br><br><div class="gmail_quote">On 23 October 2013 22:56, Ronni Montoya <span dir="ltr">&lt;<a href="mailto:ronni.montoya@gmail.com" target="_blank">ronni.montoya@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Peiman, thanks for that patch, im gonna try to adapt it to what im<br>
trying to achieve.<br>
<br>
and Yes i think you understood correctly.<br>
This warp program is very similar to what im trying to achieve , but<br>
theres a difference in the way how frequencies are mapped.<br>
<br>
The way I need to do it is  in this way:<br>
<br>
First i define an array with a group of frequencies.<br>
Then i iterate over all the frequency bins of a sound. At each<br>
iteration it should get the current frequency value of that  bin, then<br>
i need to compare this value with my array of predefined frequencies<br>
and replace that value with the nearest value in my array.<br>
<br>
<br>
i hope its clear, cheers<br>
<br>
<br>
R.<br>
<br>
<br>
2013/10/23, peiman khosravi &lt;<a href="mailto:peimankhosravi@gmail.com">peimankhosravi@gmail.com</a>&gt;:<br>
<div class="im">&gt; Hello,<br>
&gt;<br>
&gt; If I understand you correctly, this is exactly what the GRM Tools plug-in<br>
&gt; Warp does. <a href="http://www.inagrm.com/warp" target="_blank">http://www.inagrm.com/warp</a><br>
&gt;<br>
&gt; I have a version of this which I made with pd and csound, which I&#39;m<br>
&gt; attaching. The FFT is done in Csound. To run it just install csound6 and<br>
&gt; then open up the patch. I&#39;ve also included the externals with the patch,<br>
&gt; but they are built for osx so you&#39;ll need to replace them if you&#39;re on a<br>
&gt; different platform. I know that the csound~ external is running on osx, but<br>
&gt; I&#39;ve never tried it on windows so...<br>
&gt;<br>
&gt; If you want really precise control over which frequencies you&#39;re remapping<br>
&gt; then you need to change the pd patch a bit but it&#39;s just a question of<br>
&gt; converting bin number to frequency value, which is simple.<br>
&gt;<br>
&gt; Best,<br>
&gt; Peiman<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; *<a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> || RSS<br>
&gt; Feed&lt;<a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">http://peimankhosravi.co.uk/miscposts.rss</a>&gt; ||<br>
&gt; Concert News &lt;<a href="http://spectralkimia.wordpress.com/" target="_blank">http://spectralkimia.wordpress.com/</a>&gt;*<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;<br>
&gt; On 23 October 2013 08:59, Ronni Montoya &lt;<a href="mailto:ronni.montoya@gmail.com">ronni.montoya@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi list , i need to iterate over all the frequency bins of a sound<br>
&gt;&gt; getting each frequency and then i need to map that frequency to a<br>
&gt;&gt; specific frequency .<br>
&gt;&gt; Do anybody have tried something like this in pd?<br>
&gt;&gt; which is the best way of doing this in pd? any hint?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; cheers<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; R.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt;&gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt;&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>