Thanks for the help. My mistake was in thinking that the time delay applied to the code flow within the StremByter. What I am trying to do is control the button lights on the Blueboard - I want to be able to give feedback by lighting up, say, three buttons for a second, or two buttons for a second. This works by sending OFF messages with a 1000ms delay. But for some reason after a number of runs the BB lights simply stop working. If I wait long enough - a number of minutes say - the problem seems to resolve. The buttons on the BB work fine, it's just the button lights that stop working. Have you experienced this? It's likely a BB issue but I just wondered whether you had any ideas. Perhaps there is a way to flush the BB buffer or reset it somehow?
Hi Nic, This is the code for lighting up the 4 buttons when a scene is loaded. I have just been testing the ideas so no other code yet. I have three other scenes that are the same except they light up 3, 2 and 1 button respectively. There is a final scene that is shown below called CNTRL which loads the other scenes depending on which button is pressed.I think the issue happens when physically pressing the button and trying to light the buttons by code at the same time.
Thanks for your help Tom
SCENE 4 # Enter rules here # Press 'Install Rules' when done
I have the bb in the other mode (mode 2 entered with C button pressed) that send cc messages instead of notes. But in the same way i.e. 7f when pressed and 00 when released. I think what I need to do is find a way to send the light messages when the buttons are not pressed. Ie wait for the 00 release msg and then send light controls.
I have a scene which changes the function of the bb to latched using MidiFire and I turn the lights on and off to show the function. It works really well. Now I want to see if I can use some of the code that recognises held button pushes to simulate moving to different banks. In that way I could have 16 functions from 4 buttons. Hence the light idea to show which bank I move to. Holding the 1st button will move up a bank and holding the second will move down a bank.
I think I can do this with midifire, which I have to say is one the best midi apps I have seen. Really powerful and solid. I bought it ages ago but have only recently learnt how to use it. Brilliant!