How to find average between bang repetition?
Hi,
i'm making a M4L patch for a game joystick controller,
I have a spin wheel that send 1 bang for each tick up, another for ticks down.
I could just use increment actor to go from 0 to 127,
but i'd like to change the increment value as it ticks goes faster.
So that i would be precise slow and go increment X 2 or 3 when fast ticking.
I tried with timer and clocker without succes...
Any idea?
Thanks
Perhaps if you share what you did with timer or clocker people could spot why it is not working?
HI ernest thanks,
but i'm afraid i'm really far, despite i spent lots of time on it
hope i'm clear in my description,
bests
Hi
Ernest (and I) would prefer to see an example patch; but here is a simple example of how to use 'rate of change' or velocity, to increment a changing value:
HTH
Brendan
Ooooh thanks Brendan,
It's really simple with delay, smart !
i'll post my increment patch asap !
Bests
ps: in your ex, is line used as kind of smoother?
thanks
exactly
Hi,
I 'm sorry i wanted to upload my patch but it triggered a problem, so i can't really test and adjust the object.
when really fast spinning, the controller sends less clicks, and printing the result, show a silence and then ten bangs really fast...
Maybe I should try creating an offset of time...
thanks
maybe replacing line with a real smother that gives an average could work better in my situation, i'll try ;-)
Hi Brendan,
I took the patch again for another project, ( i work with voltage control card that drives a rotary siren osc controlled with touch osc ipad fader)
i need to make an enveloppe triggered by this fader, (0. to 1. )
I use your patch to analyse the negative or positive value of velocity:
when i go fader up i need an impulse from 1. during a variable time before it plays the fader data when fader is going up
When i go fader down, i need an impulse from 0. before playing fader data.
The problem is that using your patch works well sliding , but if I hit, the velocitiy sends no informations...
is it related to the refresh rate?
thanks a lot
Ben