it's my second post on this topic, i'm writing it because it's a more general question.
how can i access a buffer~ and copy all the amplitudes in an array of doubles in my external,
i need it to perform an fft using fftw3 library and write the output as a list of float on the first inlet, i want the external to perform the fft on an array of 4096 samples (zero padding if the sample in the buffer are less than 4096 or taking the first 4096 if the buffer is bigger) when receiving a bang in its left and only inlet.
i know how to perform the fft in a stand alone program, so i can write the method, but i cannot understand how to access the buffer, and also i don't know if i have to write an msp external or just a max external (no inlet or outlets are sending/receiving signals) just bang -> inlet; outlet -> list of amplitudes.
thanks to all the community and of course to cycling74 for this software.