Created
March 16, 2018 18:02
-
-
Save nasser/c30587731865f7f8796eb555ca98e37c to your computer and use it in GitHub Desktop.
node.js OSC demo — remember to first do npm install node-osc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osc = require('node-osc'); | |
var client = new osc.Client('127.0.0.1', 3333); | |
client.send('/paddle-position', 90, function () { | |
client.kill(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osc = require('node-osc'); | |
var oscServer = new osc.Server(1234, '0.0.0.0'); | |
oscServer.on("message", function (msg, rinfo) { | |
console.log(msg); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment