Class: Rusholme::OSCClient
- Inherits:
-
Object
- Object
- Rusholme::OSCClient
- Defined in:
- lib/rusholme/osc_client.rb
Instance Method Summary collapse
-
#initialize(osc_server: "localhost", osc_port: 2345) ⇒ OSCClient
constructor
A new instance of OSCClient.
- #send(address, data) ⇒ Object
Constructor Details
#initialize(osc_server: "localhost", osc_port: 2345) ⇒ OSCClient
Returns a new instance of OSCClient.
5 6 7 |
# File 'lib/rusholme/osc_client.rb', line 5 def initialize(osc_server: "localhost", osc_port: 2345) @client = OSC::Client.new(osc_server, osc_port) end |
Instance Method Details
#send(address, data) ⇒ Object
9 10 11 |
# File 'lib/rusholme/osc_client.rb', line 9 def send(address, data) @client.send(OSC::Message.new(address, data)) end |