[LAD] prototyping callback based architecture in python?
iainduncanlists at gmail.com
Wed Nov 2 18:27:17 UTC 2011
For anyone interested, it turns out there is an alpha package in rtaudio
that wraps RTAudio's callback facility in python, added this year by one of
Gary Scavone's students, Antoine Lefebvre. It's incomplete (doesn't yet
support all the rtaudio options) so it's hard to tell whether it's working
super well on my machine, but it compiles and runs and makes a sine wave
ok. It'll give me something to port with for now at any rate, and maybe I
can help complete it.
it's in rtaudio-4.0.10/contrib/python/pyrtaudio
On Wed, Nov 2, 2011 at 10:02 AM, Iain Duncan <iainduncanlists at gmail.com>wrote:
> Thanks guys, it looked from what I could see on the port audio page that
> only non-blocking was supported, but Gary said on the stk list that it
> might be possible with the python wrappers in the rtaudio package. I
> realize it's probably not going to be practical as a long term solution (
> though I sure with it were possible ) but as I actually earn my living
> coding python and am a total C++ amateur, it's probably worth saving some
> frustration figuring out architecture in a python prototype. I'm ok with
> high latency for now.
> Kjetil, do you know if anyone has experimented with a real time memory
> allocator for Python?
> On Wed, Nov 2, 2011 at 6:37 AM, Kjetil Matheussen <
> k.s.matheussen at notam02.no> wrote:
>> > On Wed, Nov 2, 2011 at 9:24 AM, Kjetil Matheussen
>> > <k.s.matheussen at notam02.no> wrote:
>> >> I also think I remember someone using Python for real time sample
>> >> by sample signal processing in Pd...
>> > right, but not sample-by-sample, or am i misremembering Pd internals?
>> It is possible (and quite simle) to write a wrapper for letting python do
>> sample-by-sample processing in Pd. I remember someone mentioning
>> someone doing it, but this was in 2005, and the performance was
>> so bad it wasn't useful. But I might remember wrong.
>> Linux-audio-dev mailing list
>> Linux-audio-dev at lists.linuxaudio.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Linux-audio-dev