<div dir="ltr">Hi Eric,<div><br></div><div>Sounds like you might want to be using libpd_process_raw() instead. If I'm remembering correctly, libpd_process_float() expects interleaved samples in the buffer you feed it, and process_raw() expects blocks of samples interleaved by channel.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 3, 2023 at 3:50 PM Eric Lennartson <<a href="mailto:lennartsoneric@gmail.com">lennartsoneric@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello all, <div><br></div><div>I have been experimenting with using python and libpd, and for the most part it works well.</div><div>However, I have been trying to use the other processing methods such as libpd_process_float() or libpd_process_double(), but when I do I just get crazy noise.</div><div>The code I'm working with is just a modified version of the echo.py file in the samples section of the libpd github page. Basically, all I have done is change the pyaudio format to paFloat32, created a dummy buffer to pass to the process method with array.array('f', range(libpd_blocksize()) and called libpd_process_float() instead. I did check to see if the format was supported using pyaudio's is_format_supported() method and it returned True. The pd patch itself is just a quite sine tone straight into the dac. So I'm really scratching my head here, what am I missing?</div><div><br></div><div>Thanks for any insight you can provide.</div><div><br></div><div>Eric</div></div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">William Brent<br><br>“Great minds flock together”<br>Conflations: conversational idiom for the 21st century<br><br><a href="http://www.conflations.com" target="_blank">www.conflations.com</a></div></div>