timothyallan
2007-08-20 13:22:32
Hi Florian, awesome bit of programming you've done . I have a quick question for you regarding MT Pro:
I have a midi button down press coming in at 7F.
First translater sets GA to 0.
Second translator triggers a timer that increments GA by 1 every 20ms
On midi button up 00 it kills that timer.
Also on that same button up 00 I have another timer that now starts decrementing GA by 1 every 20ms.
GA=GA-1
GA=GA-1
GA=GA-1
GA=GA-1
...
until GA = 0. How do I get the decrementing timer to stop when GA hits 0 without hitting any buttons? If timers could be executed GA times, it would solve it, but in the meantime?
Cheers,
Tim
I have a midi button down press coming in at 7F.
First translater sets GA to 0.
Second translator triggers a timer that increments GA by 1 every 20ms
On midi button up 00 it kills that timer.
Also on that same button up 00 I have another timer that now starts decrementing GA by 1 every 20ms.
GA=GA-1
GA=GA-1
GA=GA-1
GA=GA-1
...
until GA = 0. How do I get the decrementing timer to stop when GA hits 0 without hitting any buttons? If timers could be executed GA times, it would solve it, but in the meantime?
Cheers,
Tim