I made a counter in MSP with these functionalities :
- reset the counter
- sets the direction (up or down)
- sets the mode (auto or manuel) : in auto mode it's like the combinaison metro / counter in Max domain and in manuel mode, the user send a bang.
- sets the maximum count
- sets the speed (auto mode) : like with metro speed
- count one tick (manuel mode) : like sending bang to counter
The counter works, but I have only one issue with the direction. When the user change the direction, the counter doesn't update the direction at the right tempo but immediately. I want the same behavior as the Max counter, so if I set a 1000 ms speed and I change the direction after 800 ms, I want that my counter wait 200 ms before it updates the direction.
Any idea ?
Thanks for the help