Skip to content

Repository files navigation

<img src=“https://travis-ci.com/aberant/osc-ruby.svg?branch=master” alt=“Build Status” />

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.9, 2.* and jruby

sudogeminstallosc-ruby

for the EMServer, you will need EventMachine

sudogeminstalleventmachine
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}"endThread.newdo@server.runend@client.send( OSC::Message.new( "/greeting" , "hullo!" ))
sleep( 3 )

Originally created by…

Tadayoshi Funaba

www.funaba.org/en/

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

About

Open Sound Control Library for Ruby

Resources

Stars

97 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages