connecting embedded Python audio samples with NumPy?

Gary Richardson garyr at fidalgo.net
Thu Jun 27 17:21:26 CEST 2002


I've written wrappers using CXX for a few FFTW functions that use Python
arrays to pass data to/from the library functions. I'll be happy to send you
the wrapper code and some example Python code if that would be of interest.
Gary Richardson

"Paul Miller" <paul at fxtech.com> wrote in message
news:3D1B2603.26EA9A9C at fxtech.com...
> I have a C app that reads audio data, and I'd like to pass this audio
> data in array format to Python functions so I can use it with NumPy.
>
> I have this working right now - generating a float array from the sample
> stream. But I want to put this array into a form usable by the FFT
> functions. I've read over this paper:
>
> http://www.onlamp.com/pub/a/python/2001/01/31/numerically.html
>
> Which indicates I need to put my 1D sample stream into a 2D array. Can
> anyone elaborate more on this? I'm wondering if I should provide the
> array pre-made for FFTs from my C code, or I should build the 2D array
> from the 1D array I have in Python.







More information about the Python-list mailing list