From: Michal Wallace (sabren_at_manifestation.com)
Date: 2002-06-14 08:40:45
Hey all,
I've got my first goal accomplshed: a python program that
displays something that looks like a one-channel spectral
analysis chart. I used pygame instead of the raw pysdl. I'd
downloaded it thinking it had the low-level stuff in it, but
apparently, it doesn't.
In any case, I made a simple program that pops up a window
and displays the spectral analysis graph.
At this stage, there's not actually any analysis though. It
just plots random data. :)
But... it plots it very quickly! That was my big concern. I
was afraid python (as an interpreted language) would be slow
for real time graphics stuff, but I don't think it's going
to be a problem. Run the demo, and I think you'll agree the
display side is fast enough.
The next goal is to do some FFT transformations based on Jim
M's data. For now, I'm not going to bother with the FFTW
library after all: turns out python's famous Numeric module
has a fortran FFT library linked in, and it looks easy to
use, so I'm just going to try that.
I've read through a few FFT links, but I'm still not sure I
understand it. I'm going to try it out though, and then I
may be asking some silly DSP questions... :)
Anyway, to run this first (useless) version:
- get python2.2 from http://www.python.org/
- get Numeric from http://www.pfdubois.com/numpy/
- get pygame from http://www.pygame.org/
Once those are installed, you should be able to run the
script:
http://cvs.sabren.com/sixthdev/cvsweb.cgi/openeeg/proto.py?rev=1.1.1.1
(It should be easy to follow, but if you've never seen
python code before, it probably pays to know that
indentation does for python what curly braces do for
C/C++/Java)
Anyway, all feedback/suggestions/improvements welcome! :)
Cheers,
- Michal http://www.sabren.net/ sabren_at_manifestation.com
------------------------------------------------------------
Switch to Cornerhost! http://www.cornerhost.com/
High Powered Hosting - With a Human Touch. :)
------------------------------------------------------------
This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:43 BST