Update: This is designed for Scratch 1.0. Scratch 2.0 uses a different way of extensions
Send and receive OSC (Open Sound Control) messages with Scratch. You can interface Scratch with external sensors and OSC sending applications/apps. You can also use Scratch to send OSC data to control audio software, VJ software or creative applications.
The bridge converts OSC messages to Scratch sensor and broadcast messages. More technical information about this you’ll find at: https://wiki.scratch.mit.edu/wiki/Remote_Sensors_Protocol
The application was build in Processing. You can download the application for OSX, Windows and Linux, a Processing Sketch is also available.
Download Scratch OSC Bridge from Google code
The downloads include some Scratch example projects with code commented. I’ve also implemented a smoothing algorithm to make movement more fluid.
Move the Scratch cat with a TUIO client.
Good TUIO trackers:
- tuioDroid (tracker for Android)
- tuioPad (tracker for iOS devices
- tongseng (use macbook trackpad as tuio tracker)
More TUIO tracker implementations at tuio.org
Scratch TouchOSC[youtube]http://www.youtube.com/watch?v=SiKRN3qFEic[/youtube] Move the Scratch cat with TouchOSC.
Use the acceleration sensor data to move the cat.
Change the color with fader5 and change the background with different layouts.
- touchOSC for Android
- IP address configuration (Scratch OSC Bridge displays the IP in the left upper-corner)
Scratch Bridge configuration
Configure the Scratch OSC Bridge with broadcast messages from Scratch. Instead of setting everything when starting the client, you can do this with broadcast messages from Scratch.
4 thoughts on “Scratch OSC Bridge”
Would it be possible using this Bridge OSC from/to Scratch to Python OSC? (instead of TouchOSC). I am thinking:
Blender => Python => OSC => Scratch.
Yes, you can connect anything that sends and receives OSC with the Bridge. TouchOSC was just an example.
@kasperkamperman:disqus Thanks this Bridge is really useful! I tested on Blender and it works great to connect to Scratch. In fact having the bridge is really handy that it is able to see the message before delivery.
I am fairly new to the OSC and this makes thing more clear.
Do you have the example Scratch file on the YouTube demo video?
Examples are in the zip-file. (scratch example projects).