Guillermo,

You can find an example of outbound OSC messages here:

http://chuck.cs.princeton.edu/doc/examples/osc/OSC_send.ck

Steve


LSU

Stephen David Beck, PhD
Associate Vice President
Office of Research & Economic Development
Louisiana State University 
130 David Boyd Hall, Baton Rouge, LA  70803 
office 225-578-5833 | mobile 225-223-0344 | fax 225-578-5983 
sdbeck@lsu.edu | lsu.edu | research.lsu.edu

Facebook: LSUORED | Twitter: ORED_LSU | Instagram: ored_lsu

LSU Research - The Constant Pursuit of Discovery


From: <chuck-users-bounces@lists.cs.princeton.edu> on behalf of Guille Elias Alonso <guille_elias_alonso@hotmail.com>
Reply-To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu>
Date: Tuesday, May 10, 2016 at 3:53 PM
To: "chuck-users@lists.cs.princeton.edu" <chuck-users@lists.cs.princeton.edu>
Subject: [chuck-users] Communicate with a C++ programme

Hello guys,

I'm writing a programme that analyses the micro input and makes some actions according to the analysis. Everything about the analysis is written in Chuck. The analysis of the micro signal gives a single number every 16 ms, and this number has to be sent to the C++ programme but I don't know how I can connect the two parts. This application is highly time-sensitive so I need a fast way of communicating.

I had read about these OSC events but it seems it's only for Chuck programmes receiving input from the outside and I want just the opposite. I've also thought about some mechanism of shared memory between the Chuck programme and the C++ programme but I don't see anywhere some way of implementing that with Chuck. Do you have any ideas?

Thanks,
Guillermo