round dmx value
This commit is contained in:
parent
4cffaaf303
commit
4f68bacbda
|
@ -70,7 +70,8 @@ function handleMessage(msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get mapped dmx channel
|
// 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);
|
dmxClient.send(dmxData);
|
||||||
// update osc devices to show the current state
|
// update osc devices to show the current state
|
||||||
// to be done in extra function (with whole states array?)
|
// to be done in extra function (with whole states array?)
|
||||||
|
|
Loading…
Reference in New Issue