[PD] Brealing down FFT info
TimBlechmann at gmx.net
Thu Mar 25 13:52:44 CET 2004
> I want to be able to analize the data that comes out of rfft~ as
> individual bins in order from 0 to n-1 where n = samples divided by 2.
rfft~ output's the real part of the fft to the first outlet and the
imaginary part to the second outlet ... each bin represents the
frequency given by (samplerate / windowsize) * n
> I assume that this is what rfft~ emits every cycle, so if I were to
> make an object dsp_analize_tilde, this object would get in its signal
> port a pointer to an array of information?
both the real an the imaginary output are the same type as the common
signal blocks are...
> Is there a simple peice of code that I could use either as a template,
> or as something to reverse engineer? I am intermediate with C++, but
> the C code I\'ve seen (Ive written a simple external based on info
> from the iem.at tutorial) isint always entirely clear.
if you are into c++, i'd suggest that you have a look at thomas grill's
flext ... it's very easy to use and it's much more elegant to use than
pd's internal api (i hope all the c programmers on this list forgive
Tim mailto:TimBlechmann at gmx.de
The only people for me are the mad ones, the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn,
burn, like fabulous yellow roman candles exploding like spiders across
the stars and in the middle you see the blue centerlight pop and
everybody goes "Awww!"
More information about the Pd-list