https://github.com/rubyonworld/osc-ruby
This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 1.9 compatibility.
https://github.com/rubyonworld/osc-ruby
gem osc rails ruby
Last synced: 5 months ago
JSON representation
This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 1.9 compatibility.
- Host: GitHub
- URL: https://github.com/rubyonworld/osc-ruby
- Owner: RubyOnWorld
- License: mit
- Created: 2022-09-27T15:30:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-28T01:10:39.000Z (over 3 years ago)
- Last Synced: 2025-06-01T10:27:52.345Z (7 months ago)
- Topics: gem, osc, rails, ruby
- Language: Ruby
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: History.txt
- License: LICENSE
Awesome Lists containing this project
README
= An OSC client for Ruby
{
}[https://travis-ci.com/aberant/osc-ruby]
http://opensoundcontrol.org/
== Description
This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 1.9 compatibility. I've made a point to make this code as expressive as possible and provide a test suite for confident hacking. It also should be flexible enough to support most crazy ideas.
Compatible with ruby 1.9, 2.* and jruby
== Install
sudo gem install osc-ruby
for the EMServer, you will need EventMachine
sudo gem install eventmachine
== Event Machine Basic example
require 'rubygems'
require 'osc-ruby'
require 'osc-ruby/em_server'
@server = OSC::EMServer.new( 3333 )
@client = OSC::Client.new( 'localhost', 3333 )
@server.add_method '/greeting' do | message |
puts "#{message.ip_address}:#{message.ip_port} -- #{message.address} -- #{message.to_a}"
end
Thread.new do
@server.run
end
@client.send( OSC::Message.new( "/greeting" , "hullo!" ))
sleep( 3 )
== Credits
Originally created by...
Tadayoshi Funaba
http://www.funaba.org/en/
thx also to Toby Tripp, Brian McClain, Andreas Haller, James Hughes, Rapofran, and Daniel Dickison