Hello all,
I may be going about this all wrong, so please tell me if there is a better solution to my query. I am building a patch that, among other things, returns the time between two bangs using the timer object. What I need to happen is this: if a short amount of time passes the number that is output is a large one and the inverse, if a lot of time passes, a small number is output. I have searched around quite a bit, but as I am not sure what I am trying to accomplish would be called, I haven't had great luck finding anything. any suggestions? alternate ideas I could try?
thanks much.
Hi Ben,
Ben Carney wrote:
What I need to happen is this: if a short amount of time passes the number that is output is a large one and the inverse, if a lot of time passes,
bangs | | [timer] | [+ 1] // to prevent division by zero | [swap 1] // adjust this number if you like | | [/ ] | number
Reciprocals have this property:
1/x -> +0 as x->+inf 1/x -> +inf as x->+0
which I think is what you require.