If you are a regular user of audio/visual programming environments like Cycling ’74’s Max, Pure Data, or ChucK, you may have encountered instances where you would like to communicate with network connected devices and sensors. There are plenty of ways you could approach this, but a protocol known as Open Sound Control (OSC) is probably the best supported solution.
Here’s a short description of OSC from opensoundcontrol.org:
Open Sound Control (OSC) is a protocol for communication among computers, sound synthesizers, and other multimedia devices that is optimized for modern networking technology. Bringing the benefits of modern networking technology to the world of electronic musical instruments, OSC’s advantages include interoperability, accuracy, flexibility, and enhanced organization and documentation.
In this tutorial, we will be exploring using OSC to communicate with a Raspberry Pi connected to your local network using Max, Pure Data, and ChucK. We will be using Node.js as a broker on the Pi because the event driven nature of Node.js makes it easy to do things like listen to incoming OSC messages or button presses while performing other tasks.
Check out the guide on the Adafruit Learning System.