Skip to content

Instantly share code, notes, and snippets.

@alltom
Created August 15, 2010 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alltom/525381 to your computer and use it in GitHub Desktop.
Save alltom/525381 to your computer and use it in GitHub Desktop.
require "rubygems"
require "osc"
SERVER_HOST = "localhost"
SERVER_PORT = 5000
conn = OSC::UDPSocket.new
msg = OSC::Message.new("/live/add", "s", $stdin.read)
conn.send msg, 0, SERVER_HOST, SERVER_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment