I have this midi input bit that resets triggers a timer that has a period of 200ms. I would like to have this timer fired once every 50ms regardless of the input, to make sure the next step is updated. How can I do that?
Right now, if I have a midi input every 100ms, the timer will never reach its end, and the output value will never be updated. I would like it to have some kind of hard coded update cycle run periodically on top of my other timer mechanism.
Well I’m not sure exactly what you mean. Do you mean you want a 50ms timer to run as long as you are getting A certain MIDI signal in every 200ms and then if you stop getting the midi message within 200ms to kill the 50ms repeating timer?
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
We are monitoring for note-on messages note 0 on MIDI channel 1. They are expected to come in at 100ms intervals. As long as they arrive before a 200ms, the timer “MyTimer” will continue to trigger at 50ms intervals. But if the input stops (200ms has passed), we kill the “MyTimer” 50ms timer.
I set the desired timeout (gc) and timer interval (gd) in the rules of translator 0.1
The timeout value of gc needs to be greater than the timer value of gd otherwise the timeout would never trip