I thought that might have been hard to understand, let me try to reword it. Appreciate the help!
CC72 (or any cc) I have my controller set to toggle (light on, on press =127, light off on press = 0)
Inside midi fire remote (midi mapping).. I would like module “A” (bypass state) to be on (light on/ 127) and off when light off (0).. easy done.. but now I want module “B” (bypass state) to ON with CC 72 light off (0) and off with CC 72 light on (127)
Which would create “switch” to toggle back and forth from module A to module B with one button (light on and off)
Post by redheronmusic on Sept 5, 2023 22:44:40 GMT
Looks like the Remote Control function is hardwired so that a value greater than or equal to 64 is on, less than 64 is off.
And looks like this is the value received at the input to MIDI Fire, not at the input to the module. So you could not use SB to invert the value.
While you cannot use Remote control, you can make a hack, similar to the one I linked to, using SB to block or enable a module. In this case you can use any desired value to enable or block.
At the input to the desired module, add a SB module. From the same source, hook up a second SB module that bypasses the module. Now we need mirror image SB block code, that toggles between the two paths.
Put this code as in in one path, reverse the on, off, and initial values in the second module.
Now repeat for the second module, but reversing the SB module codes.
# Red Heron Music # Sep 5, 2023 # Toggle block Rev 2
If Load Define Ctl_Msg B0 01 Define On_Value $127 # CC Value to turn on Define Off_Value 0 # CC Value to turn off Ass i0 = 0 # initial state, 0 for blocked, 1 for enabled End
If M0 == Ctl_Msg If M2 == On_Value Ass i0 = 1 End If M2 == Off_Value Ass i0 = 0 End End