Spent some time playing with SB load in the beta. Looks like the “load” is not triggering. I think I managed to get a load event one single time. Think (but don't know) that was when I did a clean load with a layout without any SB rules, created a new layout, then installed SB rules.
Next two are suppositions:
1. Suspect in Nics stand-alone implementation he has some flag when rules are recalled to trigger the load event. The current beta log does show input & output rules installed, which is prolly when the load event "should" get triggered in MDP2.
2. Suspect that MDP2 ends up with a single, continuous instance of SB, which is very persistent, and may even preserve variable values between layouts. This comes from trying to figure a workaround as follows: instead of if load, tried something like if i0 = 00, ass i0 = 7F, (other desired load code here), end. This will only get triggered a single time, implying the SB environment is preserved - leading back to 1. (Although now have another idea to check.)
Workaround for now is:
- Outbound code manually initialize with a unique sysex message.
- Inbound code, will require requesting a unique status report from the board that will only be received during init condition.