[PD-dev] mayer_realfft

Jamie Bullock jamie at postlude.co.uk
Wed Apr 19 16:47:07 CEST 2006


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






More information about the Pd-dev mailing list