Monday, 20 September 2010

Electric.py


Electric.py

We need several processes, some explicitly created, others implicitly.

Use Tkinter for the UI.

Meter process reads audio and calculates rms puts value into queue.
Queue size is one item to ensure that we catch underrun errors in the
consumer.  Meter process will typically take 0.5 second samples.
Meter is a daemon process, it needs no input except for arguments to
construction.

The queue used is a common queue so the item must be a tuple where the
first item is a tag saying what the second means.  The queue is used
by the UI to send requests to the relay process.  This means that the
relay process need only wait on one queue instead of repeatedly
polling several queues.  Would be cleaner to use Occam's ALT function
but there appears to be no equivalent in Python (or Erlang for that
matter).

How about python-csp?

Posted via email from kwhitefoot's posterous

No comments:

Post a Comment

Followers