Auto firing timer?

Hello.

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.

Thanks!

Hi and welcome back!

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

I think this might be what you are looking for.

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

Timer-when-alive.bmtp (1.6 KB)

I hope this is what you were looking for.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Thanks a lot, I will study this and get back to you.

Cheers!

1 Like