Help with Optimization of Python software: real-time audio controller
Jean-Paul Calderone
exarkun at divmod.com
Mon Feb 12 09:40:20 EST 2007
On 12 Feb 2007 06:21:39 -0800, Ross Ridge <rridge at csclub.uwaterloo.ca> wrote:
>
>Paul Rubin wrote:
>> I think you can't really do that, not just because of Python but also
>> as a result of using a multitasking OS that's not especially designed
>> for real time. You have to rely on some buffering in the audio
>> hardware, so you don't have to be sample-accurate with the timings.
>
>For his application you don't need "sample-accurate" timings. Between
>MIDI and synthesizer latency a few milliseconds of delay are inherent
>in what he's trying to do, regardless of operatings system, and a
>latency of 20 milliseconds or more is probably acceptable. Assuming
>he's not trying to write his own synthesizer, he might just be able to
>write his application in Python under Mac OS X.
Yep. There are even some existing Python applications which deal with
sound and manage to work with ~20ms samples.
Jean-Paul
More information about the Python-list
mailing list