round dmx value

This commit is contained in:
hennieliminator 2013-01-10 02:21:46 +01:00
parent 4cffaaf303
commit 4f68bacbda
1 changed files with 2 additions and 1 deletions

View File

@ -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?)