chaosc-fetcher/testsender.js

21 lines
323 B
JavaScript

var osc = require('node-osc');
var hubAddress = '192.168.23.31';
var hubPort = 2345;
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, 50);