Class: Bernstein::OSCConnection
- Inherits:
-
Object
- Object
- Bernstein::OSCConnection
- Includes:
- OSC
- Defined in:
- lib/bernstein/osc_connection.rb
Class Method Summary collapse
Class Method Details
.configure!(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/bernstein/osc_connection.rb', line 9 def self.configure!( = {}) @options.merge!( || {}) @connection = OSC::Client.new @options[:port], @options[:host] end |
.send_message(message, with_message_id = true) ⇒ Object
14 15 16 17 18 |
# File 'lib/bernstein/osc_connection.rb', line 14 def self.(, = true) = . = OSC::Bundle.new(nil, , OSC::Message.new('/message_id', .id)) if @connection.send end |