wilcofan
2014-08-26 14:29:14
Can someone confirm something for me?
Last night I was trying to delay the change in a global variable. Four translators, one original trigger:
1. receive button press (arm track OFF)
2. send the 1st message (mute MACKIE track OFF)
3. react to the 1st message, if g1==1, skip outgoing, otherwise send 2nd message (mute DAW track OFF)
4. react to the 1st message, set timer
-- delay --
5. react to the timer, send 3rd message (arm DAW track OFF), make g1=0
I created a timer to delay the changing of the global variable, g1, but no matter how long I used, the 3rd step fails every time. It's supposed to still be g1==1, until I say so in the 5th step. This got me thinking the processing of the variable happens pre-emptive. And that the outgoing action may be delayed indefinitely but the rules of the 5th message are already processed.
Confirm?
Last night I was trying to delay the change in a global variable. Four translators, one original trigger:
1. receive button press (arm track OFF)
2. send the 1st message (mute MACKIE track OFF)
3. react to the 1st message, if g1==1, skip outgoing, otherwise send 2nd message (mute DAW track OFF)
4. react to the 1st message, set timer
-- delay --
5. react to the timer, send 3rd message (arm DAW track OFF), make g1=0
I created a timer to delay the changing of the global variable, g1, but no matter how long I used, the 3rd step fails every time. It's supposed to still be g1==1, until I say so in the 5th step. This got me thinking the processing of the variable happens pre-emptive. And that the outgoing action may be delayed indefinitely but the rules of the 5th message are already processed.
Confirm?