diff --git a/nodeartnet/app.js b/nodeartnet/app.js index 067c095..7bcdd18 100644 --- a/nodeartnet/app.js +++ b/nodeartnet/app.js @@ -70,7 +70,8 @@ function handleMessage(msg) { } // get mapped dmx channel - dmxData[oscMap[chan]] = value*255; + dmxData[oscMap[chan]] = Math.round(value*255); + console.log(Math.round(value*255)); dmxClient.send(dmxData); // update osc devices to show the current state // to be done in extra function (with whole states array?)