Created
March 24, 2015 07:22
-
-
Save efficacy/e0c6e30ab872f5fe3e84 to your computer and use it in GitHub Desktop.
minimal node-osc
This file contains 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'); | |
console.log('started...'); | |
var client = new osc.Client('localhost', 4557); | |
setTimeout(function() { | |
var note = process.argv[2]; | |
console.log('got note ' + note); | |
client.send('/run-code','play ' + note); | |
console.log('sent...'); | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment