new feature : preArgs option to prepend constant values in widgets' osc messages

This commit is contained in:
jean-emmanuel 2016-03-22 16:52:34 +01:00
parent f04cd39587
commit 44da95dcec
21 changed files with 387 additions and 125 deletions

View file

@ -27,14 +27,14 @@ module.exports = function(ipc, settings) {
if (typeof arg == 'number') {
message.append({type:numberType,value:arg})
} else {
message.append({type:'string',value:arg})
message.append({type:'string',value:String(arg)})
}
}
} else {
if (typeof args == 'number') {
message.append({type:numberType,value:args})
} else {
message.append({type:'string',value:args})
message.append({type:'string',value:String(args)})
}
}