chaosc-fetcher/testsender.js

21 lines
324 B
JavaScript

var osc = require('node-osc');
var hubAddress = '192.168.23.43';
var hubPort = 7110;
var oscClient = new osc.Client(hubAddress, hubPort);
var rate = 0.0;
function fubs() {
oscClient.send('/snd/rate',rate);
console.log("rate = " + rate);
rate+=0.01;
if(rate >=1) rate = 0.0;
}
setInterval(fubs, 200);