FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lowi-yeah/osc-ruby: Open Sound Control Library for Ruby · GitHub

 
 

Latest commit

 

History

90 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opensoundcontrol.org/

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.8, 1.9, and jruby

sudo gem install osc-ruby

for the EMServer, you will need EventMachine

sudo gem install eventmachine
# compatible with ruby 1.8, 1.9, and jruby
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.to_a
end

Thread.new do
  @server.run
end

@client.send( OSC::Message.new( "/greeting" , "hullo!" ))

sleep( 3 )
# compatible with ruby 1.8
require 'rubygems'
require 'osc-ruby'

@server = OSC::Server.new( 3333 )
@client = OSC::Client.new( 'localhost', 3333 )

@server.add_method '/greeting' do | message |
  puts message.inspect
end

Thread.new do
  @server.run
end

@client.send( OSC::Message.new( "/greeting", "hullo!" ))

sleep( 3 )

Originally created by…

Tadayoshi Funaba

www.funaba.org/en/

thx also to Toby Tripp and Obtiva

About

Open Sound Control Library for Ruby

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors


Back | FazBrowse Home | New Git URL