Open Sound Control (OSC) is a protocol for networking sound synthesizers, computers, and other multimedia devices for purposes such as musical performance or Show control. 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.
This is an Android app for sending sensor data via Open Sound Control (OSC).
Depending on your Android version and your device, a number of sensors are available for apps to read. This app enables you to selectively send this data as float over OSC to any receiver.
Use the settings dialog to set the host, that should receive the data, as well as the UDP port, that the receiver is listening to. The rate of sensor readings is settable too.
The switches on the main screen are used to toggle sending of data.
The main switch toggles sending the data as a whole. Only when this switch is set to “on” will the app send data over the network.
Different sensors have different number of ranges and different number of values. Each sensor type has a corresponding OSC address, that is shown to the right of the sensor name. Each of the values can be toggled separately.
If a sensor has only one value, then the value will be sent as:
/<osc_prefix> ,f <value>
/proximity ,f 9.
If a sensor has multiple values, then the value will be sent as:
/<osc_prefix/<coordinate> ,f <value>
/orientation/Y ,f, 201 and
/orientation/Z ,f -23
Note: Because X is not selected, no data is sent for this coordinate.
The numerical values all correspond to real physical values, for details about these and possible ranges, see the Android developer documentation.
An example of a working Pd patch that displays typical sensors for most devices and multi-touch:
The phone is lying flat on the desk, so only the gravity is showing as the acceleration value. Shaking the phone violently will show much higher absolute values. NB: negative values are possible as well.
Three fingers are still touching the phone. Values range from 0 to 1. Finger 4 has been lifted from the phone, so it reports both X and Y as -1. There were never more than 4 fingers on the multi-touch page, so
touch5 and higher show constant 0. NB: if you lift finger 2, then the phone will reset
touch2 to -1, but will still follow finger number 3.
Download and Installation
You can also download the source code from Github and build it yourself:
Development and Bug Reporting
Development is done over at Github.
If you want to report a bug, please first have a look at the issue tracker. If you already have a Github account, please report your bug there.
You can also send bug reports or feature requests to email@example.com. Please try to be as specific about your problem as possible.
Thomas Mayer <firstname.lastname@example.org>
Antonio Deusany de Carvalho Junior <email@example.com>
naofum (Japanese translation)
Copyright (c) 2014 – 2017 Thomas Mayer, Antonio Deusany de Carvalho Junior
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.