- Open Stage Control version (or commit if built from sources)
OSC version 1.22.0 - Operating system
Linux Mint 20.1 Ulyssa - Client type (built-in or external browser) and version
built-in - Session file (can be uploaded after adding the .txt extension)
attached - Custom module
attached
Hi there!
Thank you a lot for this great software. It really makes work and life easier!
I stumbled across a strange issue when using the "receive('/SET', target, value)" from within a for loop in my custom module. The slider with index number 9 simply does not update like all the others when I try to set it to a float number.
In the module you find
var deactValue = 0.35;
var numOfBatches = 16;
if (address === '/STARTVALS_00') {
for (var i = 0; i < numOfBatches; i++) {
var setTarget = '/vimix/selection#' + i + '/alpha'
// console.log(setTarget)
// send(setTarget, 0);
receive('/SET', setTarget, -deactValue)
}
receive('/SET','/vimix/selection#1/alpha', 1)
}
In the pictures you can see that the console shows the "In" message correctly with #9 listed, but in "Out" it is simply missing and thus has no effect on my GUI.
However, when using intgers (1 or 0) it works just fine.
Also, changing the variable to positive value, it has no effect. Only integers work on #9.
Any thoughts or help on this would be highly appreciated.
Have a nice day!
VIMIX_ctrl.json (459.6 KB)
midi2OSC.js (9.2 KB)