2010/05/03

PaiMorse project: Morse module for Python

The project "page" is http://gitorious.org/paimorse/paimorse for now. Maybe I create a page for it someday. It was written while stuck inside a plane, being lazy to do anything more useful :)

The Morse CLI programs are available only for Linux, not for Mac OS X, and written in C, which is overkill these days. So I began to write a Python version of "cw", putting Morse things in an independent module for easy reusage. The source code includes e.g. a IRC "listener" that plays channel conversation as Morse.

Morse.py does not depend on anything except native audio support, which is likely included in Python distribution. For now, there are two audio 'backends' in morse.py: Mac and Linux.

The biggest problem right now is dependency on time.sleep() to make silence. In dual-CPU machines it works very well, but testing in a single-CPU VMWare guest, it sounds a bit off. Indeed, most sleep system calls may 'oversleep', except if we put the process in real-time mode, which is obviously not the right thing to do. The best solution would be to generate a continuous audio stream with sounds and silences.
blog comments powered by Disqus