osc: postpone e42f14577d for later, maybe
This commit is contained in:
parent
5f07fcc704
commit
ce4c99ddfe
2 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue