I am stuck on a fairly simple problem as I am new to Max/MSP.
I have a continous analog input, that has two directions, up and down. What I want is to be able to trigger different samples based on how many movements of the joystick in certain directions occur per second. For example, if the range is scaled to -1 (down), 0 (middle) and 1 (top), then if the joystick is moved up once in a second, trigger sample a, if joystick is moved up, back to middle and up again in space of a second trigger sample b, then the same process occurs but with samples c and d for downwards movement.
I'm aware a second may be too short amount of time, but this is just an example time. Also, I can figure out how to implement the analogue input, so if anybody can tell me how to do the rest of the patch i.e. comparing input with time and triggering the samples that would be great.
Thanks in advance for any help,