diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc4c380..b55c04f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,6 @@ - main - renamed `--sync` option to `--send` (deprecation, backward-compatible) -- osc - - messages received almost simultaneously are now bundled before being sent to clients. This helps preserving their order. - widgets - sliders/pads: when receiving feedback while touched, the widget waits to be released before updating to the latest received value. - input: the widget's value is no longer validated when leaving focus by clicking somewhere else or hitting the `Tab` key (it must be submitted by hitting the `Enter` key); when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore; non-editable inputs can't steal focus anymore diff --git a/app/main/osc.js b/app/main/osc.js index ebceefcf..d69badcb 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -70,7 +70,7 @@ var sendOsc = function(data){ } -var receiveOscQueue = [] +// var receiveOscQueue = [] var receiveOsc = function(data, info){ @@ -82,20 +82,22 @@ var receiveOsc = function(data, info){ if (data.args.length==1) data.args = data.args[0] - receiveOscQueue.push(data) + // receiveOscQueue.push(data) + + ipc.send('receiveOsc',data) if (debug) console.log('OSC received: ', {address:data.address, args: data.args}, 'From : ' + data.host + ':' + data.port) } -setInterval(()=>{ - - if (receiveOscQueue.length > 0) { - ipc.send('bundle',receiveOscQueue) - receiveOscQueue = [] - } - -}, 5) +// setInterval(()=>{ +// +// if (receiveOscQueue.length > 0) { +// ipc.send('bundle',receiveOscQueue) +// receiveOscQueue = [] +// } +// +// }, 5) var customModule = (function(){