<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's exactly what I'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'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"><<a href="mailto:ronni.montoya@gmail.com" target="_blank">ronni.montoya@gmail.com</a>></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 <<a href="mailto:peimankhosravi@gmail.com">peimankhosravi@gmail.com</a>>:<br>
<div class="im">> Hello,<br>
><br>
> If I understand you correctly, this is exactly what the GRM Tools plug-in<br>
> Warp does. <a href="http://www.inagrm.com/warp" target="_blank">http://www.inagrm.com/warp</a><br>
><br>
> I have a version of this which I made with pd and csound, which I'm<br>
> attaching. The FFT is done in Csound. To run it just install csound6 and<br>
> then open up the patch. I've also included the externals with the patch,<br>
> but they are built for osx so you'll need to replace them if you're on a<br>
> different platform. I know that the csound~ external is running on osx, but<br>
> I've never tried it on windows so...<br>
><br>
> If you want really precise control over which frequencies you're remapping<br>
> then you need to change the pd patch a bit but it's just a question of<br>
> converting bin number to frequency value, which is simple.<br>
><br>
> Best,<br>
> Peiman<br>
><br>
><br>
><br>
><br>
><br>
><br>
</div>> *<a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> || RSS<br>
> Feed<<a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">http://peimankhosravi.co.uk/miscposts.rss</a>> ||<br>
> Concert News <<a href="http://spectralkimia.wordpress.com/" target="_blank">http://spectralkimia.wordpress.com/</a>>*<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
> On 23 October 2013 08:59, Ronni Montoya <<a href="mailto:ronni.montoya@gmail.com">ronni.montoya@gmail.com</a>> wrote:<br>
><br>
>> Hi list , i need to iterate over all the frequency bins of a sound<br>
>> getting each frequency and then i need to map that frequency to a<br>
>> specific frequency .<br>
>> Do anybody have tried something like this in pd?<br>
>> which is the best way of doing this in pd? any hint?<br>
>><br>
>><br>
>> cheers<br>
>><br>
>><br>
>> R.<br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> UNSUBSCRIBE and account-management -><br>
>> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
>><br>
><br>
</div></div></blockquote></div><br></div>