http://opensoundcontrol.org/introduction-osc
Open Sound Control (OSC) is a protocol for communication among computers, sound synthesizers, and other multimedia devices that is optimized for modern networking technology. There are dozens of implementations of OSC, including real-time sound and media processing environments, web interactivity tools, software synthesizers, a large variety programming languages, and hardware devices for sensor measurement. OSC has achieved wide use in fields including computer-based new interfaces for musical expression, wide-area and local-area networked distributed music systems, inter-process communication, and even within a single application. OSC was originally developed, and continues to be a subject of ongoing research at UC Berkeley Center for New Music and Audio Technology (CNMAT).
The User Datagram Protocol (UDP) is one of the core members of the Internet protocol suite. With UDP, computer applications can send messages, in this case referred to as datagrams, to other hosts on an Internet Protocol (IP) network without prior communications to set up special transmission channels or data paths. The protocol was designed by David P. Reed in 1980.
UDP uses a simple transmission model with a minimum of protocol mechanism. It has no handshaking dialogues, there is no guarantee of delivery, ordering or duplicate protection. UDP provides checksums for data integrity, and port numbers for addressing different functions at the source and destination of the datagram.
UDP is suitable for purposes where error checking and correction is either not necessary or performed in the application, avoiding the overhead of such processing at the network interface level. Time-sensitive applications often use UDP because dropping packets is preferable to waiting for delayed packets, which may not be an option in a real-time system.
To allow Adobe Director to encode and decode OSC data, we use a third-party library, called asUDP Xtra:
http://www.schmittmachine.com/asUDP.html
The downloaded asUDP folder needs to be placed in Applications > Director 11 > Configuration > Xtras. In the Demos folder of asUDP, open and run OSCDemo.dir.
Reading Data from a MindWave device
Reading Data from a Kinect device