The problem is, that events are never received at the same time. There is always a sequential order which is controlled by the MIDI device which sends the events, and this has to be considered when working with conditions.
If the order is randomly (e.g. because the keys are played by a human ;-)), then I don’t see a proper way with the existing MBNG functions.
Therefore the question: is the order - and maybe also the events which are sent - under your control?
This could be done with some external IC’s gates rather than software changes. From the Dout board, connect 4 of these outputs to the input of 4 “OR” gates. Then take the single BPM output (LED5) and connect it to each of the gate inputs. Now take the output of the 4 gates and connect them to the LED’s with resistors. If you wanted to send Midi messages, just connect the gate outputs to 4 inputs of a Din board. Its not an elegant solution but should work as you described.
Thanks for your suggestion Pete!
Using a hardware workaround is a good idea.
Google will know it for sure.
But some minutes ago i ad this idea:
What if i use the BPM output to cycle between two banks?
But please take AND gates, otherwise the LED would be active if either key1 OR key5 is pressed.
Best Regards, Thorsten..
The reason I indicated to use the OR gate was because I thought that the LED’s turned ON when the shift register output went to 0 volts (active low). My mistake here.