acceleration question: using DIY delta and snapshot -type abstractions

brendan mccloskey's icon

Hi
I am using several [pipe] and [delay] objects to capture the rate of change in one slider, as acceleration data for a second slider (via message to [line~]); it works, but is occasionally unreliable, and I suspect my implementation is clunky due to my DIY versions of delta/snapshot. Are there any glaring optimzations possible that I've missed here:

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks
Brendan

ch's icon

Hi brendan,

Max Patch
Copy patch and select New From Clipboard in Max.

I haven't look at your patch in details, and it may not help, but I usually
write a delta this way :

As well, to smooth things with [line], you may consider using its second argument (the time grain) maybe.

hope this helps

brendan mccloskey's icon

Hi Ch
yeah this is the method I'm using - the issue is that sometimes (rarely) the delta is incorrect; low when it should have been high. But only rarely.

Brendan

ch's icon

yeah this is the method I'm using

you probably posted a wrong patch then, cause it's not the one used in what you posted

brendan mccloskey's icon

Look inside the [myDelta] subpatch

ch's icon

I did :)

brendan mccloskey's icon

Hi Ch
the patch you posted as a suggestion uses [t f f] -> [-] in exactly the same way I do.

ch's icon

hi brendan,

we're not going to continue this discussion for ever please.
have a look to the patch you posted, and see that you're using a [pipe 20] in it. I dont that like solution, cause it strongly relies on the line and pipe timings.

Max Patch
Copy patch and select New From Clipboard in Max.

It's up to you, but this :

Max Patch
Copy patch and select New From Clipboard in Max.

is not this :