<div dir="ltr">i have seen this used successfully on c++ side<br><br>oscpack -- Open Sound Control packet manipulation library<br><a href="http://www.audiomulch.com/~rossb/code/oscpack">http://www.audiomulch.com/~rossb/code/oscpack</a><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-11 8:56 GMT+01:00 Jamie Bullock <span dir="ltr"><<a href="mailto:jamie@jamiebullock.com" target="_blank">jamie@jamiebullock.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>Hi Paul,<div><br></div><div>std::vector doesn't make a good container for OSC messages, as message argument  types aren't generally contiguous (a message could be two ints and a float, for example). </div><div><br></div><div>Instead you need some intermediate data structures to handle argument lists, introspecting types from arguments and unpacking values. This is what oscpack does:</div><div><br></div><div><span style="line-height:1.7"> <a href="https://code.google.com/p/oscpack/source/browse/trunk/examples/SimpleReceive.cpp" target="_blank">https://code.google.com/p/oscpack/source/browse/trunk/examples/SimpleReceive.cpp</a></span></div><div><br></div><div>It's straightforward to use and I've found it reliable.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Jamie</div></font></span><div class="HOEnZb"><div class="h5"><div><br></div><div><br><div><div style="color:rgb(0,0,0)">On Tue, Mar 10, 2015 at 7:42 pm,  Paul Keyes <<a href="mailto:spskeyes@gmail.com" target="_blank">spskeyes@gmail.com</a>> wrote:            <div style="overflow:visible"><blockquote style="color:#303b40"><div dir="ltr">If I really want to use OSC is there a simple way to do it?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 24, 2014 at 4:10 PM, Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Paul -<br>
<br>
No need to use OSC for this - you can just use "netsend".  THere's sample<br>
code for receiving from netsend in pd/src/u_pdreceive.c.<br>
<br>
cheers<br>
Miller<br>
<div><div><br>
On Fri, Oct 24, 2014 at 03:21:22PM -0300, Paul Keyes wrote:<br>
> Hi,<br>
><br>
> I'm sending a list from pd to a c++/liblo app like so:<br>
><br>
> [mylist]<br>
> |<br>
> [list prepend /osc_addr]<br>
> |<br>
> [list trim]<br>
> |<br>
> [packOSC]<br>
><br>
> ...<br>
><br>
> How can I read this list into an array or vector in the c++ app?<br>
> There seems to be lots of libraries, I've been testing liblo, but nothing<br>
> straightforward for receiving a list.<br>
><br>
> Any help is greatly appreciated!<br>
<br>
</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="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div><br></div>
</blockquote></div></div>            </div>            </div>

</div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>