trublion / sparkcore_osc

OSC library (Oscuino) for the Spark Core
GNU General Public License v3.0
18 stars 2 forks source link

sparkcore_osc

OSC library (Oscuino) for the Spark Core

Let's keep in touch :

We've been working on porting the [Oscuino library] (https://github.com/CNMAT/OSC) to the Spark Core, and we've faced the same problems as the ones mentioned in that thread by jfenwick.

Instead of rewriting the UDPSend() function of the OSCMessage and OSCBundle classes, we've identified that the issues came from the Spark's core-firmware code (UDP class in spark_wiring_udp.cpp).

We've overloaded the misfunctioning functions (i.e. beginPacket(), endPacket() and write()), and added proper includes in the Oscuino files, as explained in the following.

Our library is provided with Puredata and Max/MSP example patches to test the functionalities of our code.

This code will only work with the most recent versions of the core-firmware (or the current online compiler of the cloud), since we use the CFLAGS += -DSPARK recently defined in the makefile.

1. What we have changed in the Spark Core's code :

2. What we have changed in the Oscuino code :

3. Setup (we're compiling our code with make as explained in the documentation ) :

4. Use (test application) :

5. PD and Max/MSP patches :


[Simon-L & Emilien-G for trublion]