Hi,
Here is an example.
The Init preset handles normal housekeeping including initializing global variables and the APC40 MKII to mode 2.
The Working preset handles clearing old LED’s and starting the blink timer.
The LED Feedback preset has the Blink Channel Timer
Global variables used
ga=which channel to blink
gb = blink toggle state (0 or 1)
gc = time in milliseconds to blink the target LED.
When the incoming message of 9x 33 7f comes in the value of ga is set to the current MIDI channel x. The LED’s are all cleared and the blink timer starts.
The always repeating blink timer toggles the state of gb and sets the note message to the currently active outgoing MIDI channel ga.
APC40-Blink-2021-07-07.bmtp (2.1 KB)
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz