I can’t seem to get this to work. I’m not sure If I’m doing something the wrong way, or if there’s an underlying bug involving latched buttons changing with identchannel values.
I’d like to have one button that changes the latched() mode of another button. So far, that much works.
However, when turning latched off, I would like to make sure that the button is also turned off. This, I can’t seem to get to work. Whether I try setting value(0) in the same chnset as the latched(0) to the identchannel, or whether I send 0 to the variable’s channel… the button responds as if it’s still latched, and then pops back to pressed.
Attached is an example that I think illustrates this problem:
latched_value.csd (688 Bytes)
To see the behavior, note that in the example the “PUSH” button starts unlatched.
Press the “LATCH” button.
Press the “PUSH” button, it is now latched.
Leaving the “PUSH” button pressed, press the “UNLATCH” button.
Note the behavior of the “PUSHED” button, it turns off, but immediately back on.