Re: [LAD] prototyping callback based architecture in python?

From: Iain Duncan <iainduncanlists@email-addr-hidden>
Date: Wed Nov 02 2011 - 20:27:17 EET

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
iain

On Wed, Nov 2, 2011 at 10:02 AM, Iain Duncan <iainduncanlists@email-addr-hiddenwrote:

> 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?
>
> Thanks
> Iain
>
> On Wed, Nov 2, 2011 at 6:37 AM, Kjetil Matheussen <
> k.s.matheussen@email-addr-hidden> wrote:
>
>> > On Wed, Nov 2, 2011 at 9:24 AM, Kjetil Matheussen
>> > <k.s.matheussen@email-addr-hidden> 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@email-addr-hidden
>> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>>
>
>

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Nov 2 20:15:02 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 02 2011 - 20:15:02 EET