<div>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.<br>
</div><div><br></div><div>it's in rtaudio-4.0.10/contrib/python/pyrtaudio</div><div>iain</div><br><div class="gmail_quote">On Wed, Nov 2, 2011 at 10:02 AM, Iain Duncan <span dir="ltr"><<a href="mailto:iainduncanlists@gmail.com">iainduncanlists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>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. </div>

<div><br></div><div>Kjetil, do you know if anyone has experimented with a real time memory allocator for Python?<br></div><div><br></div><div>Thanks</div><div>Iain</div><div><div class="h5"><div><br></div><div class="gmail_quote">

On Wed, Nov 2, 2011 at 6:37 AM, Kjetil Matheussen <span dir="ltr"><<a href="mailto:k.s.matheussen@notam02.no" target="_blank">k.s.matheussen@notam02.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>> On Wed, Nov 2, 2011 at 9:24 AM, Kjetil Matheussen<br>
> <<a href="mailto:k.s.matheussen@notam02.no" target="_blank">k.s.matheussen@notam02.no</a>> wrote:<br>
><br>
>> I also think I remember someone using Python for real time sample<br>
>> by sample signal processing in Pd...<br>
><br>
> right, but not sample-by-sample, or am i misremembering Pd internals?<br>
><br>
<br>
</div>It is possible (and quite simle) to write a wrapper for letting python do<br>
sample-by-sample processing in Pd. I remember someone mentioning<br>
someone doing it, but this was in 2005, and the performance was<br>
so bad it wasn't useful. But I might remember wrong.<br>
<div><div><br>
<br>
<br>
_______________________________________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org" target="_blank">Linux-audio-dev@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>