[PD-dev] mayer_realfft

Jamie Bullock jamie at postlude.co.uk
Wed Apr 19 20:00:20 CEST 2006


It's OK, I've sorted it now. I think I was just suffering from code mash!

Jamie


On Wed, 19 Apr 2006 14:47:07 +0000
Jamie Bullock <jamie at postlude.co.uk> wrote:

> 
> Hi,
> 
> I am trying to understand how mayer_realfft works. From the comments in the pd sources, I would assume that the following would give the same output as rfft~
> 
>  k = N / 2;
> 
>  transform = (float *)calloc(N, sizeof(float));
> 
>   for(i = 0; i < N; i++)
>       transform[i] = sig[i];
> 
>   mayer_realfft(N, transform);
> 
>   for(i=0, j=k; i < k; i++, j++)
>   {
>     out1[i]=transform[i];
>     out2[i]=transform[j];
>   }
> 
> ...but it doesn't...
> 
> Can anyone tell me where I am going wrong?
> 
> Thanks,
> 
> Jamie
> 
> 
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev




More information about the Pd-dev mailing list