Project

osc-ruby

0.06
Low commit activity in last 3 years
There's a lot of open issues
No release in over a year
This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 2.0/1.9/JRuby compatibility
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

An OSC client for Ruby¶ ↑

Build Status

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

www.funaba.org/en/

thx also to Toby Tripp, Brian McClain, Andreas Haller, James Hughes, Rapofran, and Daniel Dickison