Just wanted to show you my hardware test pattern and a bit of how my “installation” for MozFest will look like:
I’ll be at the Science Fair tomorrow afternoon/evening as part of the “make the web physical” area, so you can try and build some melodies with this!
See you there!
That is the result of this code:
var osc = require('node-osc');
var client = new osc.Client('0.0.0.0', 9999);
var value = 0;
client.send('/quneo/leds/hSliders/0/' + value, 0);
value = ++value % 7;
client.send('/quneo/leds/hSliders/0/' + value, 1);
var bpmFlash = 0;
var bpmInterval = 60 * 1000.0 / 125;
console.log('bpm interval', bpmInterval);
bpmFlash = bpmFlash > 0 ? 0 : 1;
which I think is AWESOME!
Also, the official docs on the OSC bridge are wrong. To turn pad lights on you have to use the SW/SE/NW/NE names too…, or use ‘*’ in place of the direction, to turn the entire pad on. Otherwise I couldn’t get anything to light up. I.e.
// works, turns on the red led on the bottom right corner
// works, turns on all the red leds on the first pad
// doesn't work
Another error I fell for was using slash-terminated input addresses. These (silently) do not work. I.e.
// won't work, address ends in '/'
// works, address doesn't end in '/'
I have very little else to report as I just got this thingie today and I’m super excited that I got it communicating with node.js this early. Yay for OSC!