<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>That's a good question.</div><div><br></div><div>Hrm, well you can easily read and write to arrays which are naturally 1 dimensional. I would first try flattening the image by writing the pixel buffer into a float array. &nbsp;Then send the width and height as well for reading it back in pd. There currently isn't a way to send an area of memory and I could imagine sending a giant list would be alot slower then using an array.</div><div><br></div><div>See the example in&nbsp;<a href="https://github.com/danomatika/ofxPd">https://github.com/danomatika/ofxPd</a>&nbsp;for how to read/write to pd arrays.</div><div><br></div><div>Otherwise you could write and external as Mathieu suggests ...</div><br><div><div>On Aug 27, 2011, at 11:21 PM, Mathieu Bouchard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Sat, 20 Aug 2011, ronni montoya wrote:<br><br><blockquote type="cite">Hi , Do anybody is working with openframeoworks and libpd? i would like to develop an application that interpret pixels as sounds using libpd addon on openframeworks. I was wondering which would be the best way for sending images(opencvimages ) or pixels arrrays from openframeworks to pd using libpd and receiving it in pd for interpreting it as sound in real time. Do anybody have tried soemthing like this? any idea?<br></blockquote><br>You can make yourself tilde externals for pd, that you embed in your libpd-based app... e.g. one or two outlets, no inlets.<br><br>You just call the setup-functions of the externals just after initialising libpd... the externals don't need to be separate files (dll, so, dylib)&nbsp;: they can be part of your main executable instead, which is easier.<br><br>I already do that with non-tilde externals. (Haven't had a reason to make tilde externals in that context yet).<br><br> _______________________________________________________________________<br>| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------</div><div>Dan Wilcox</div><div><a href="http://danomatika.com">danomatika.com</a></div><div><a href="http://robotcowboy.com">robotcowboy.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>