Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tperkis/node-osc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

node-osc

A very basic OSC client (so far) implementation based heavily on pyOSC.

Relies on current trunk of node.js for the dgram library.

Example

var osc = require('osc');

var client = osc.Client(10000, '127.0.0.1');
client.sendSimple('/oscAddress', [200]);

// slightly more complex
var msg = osc.Message('/oscAddress');
msg.append(200);
msg.append(10);

client.send(msg);

You can also create a OSC server:

var osc = require('osc');

var server = osc.Server(10001, '127.0.0.1');

server.addMsgHandler('/bang', function (args) {
   console.log('I got a bang!')
});

Licensing

pyOSC looks to be GPL so I guess this is too. More formalities later on.

About

OSC protocol library for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published