Forums > MaxMSP

acceleration question: using DIY delta and snapshot -type abstractions

October 27, 2011 | 1:05 pm

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:

– Pasted Max Patch, click to expand. –

Thanks
Brendan



Ch
October 27, 2011 | 8:37 pm

Hi brendan,

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

– Pasted Max Patch, click to expand. –

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

hope this helps


October 27, 2011 | 9:14 pm

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
October 28, 2011 | 11:00 am

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


October 28, 2011 | 12:39 pm

Look inside the [myDelta] subpatch



Ch
October 28, 2011 | 10:58 pm

I did :)


October 29, 2011 | 1:28 am

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



Ch
October 29, 2011 | 8:57 am

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.

It’s up to you, but this :

– Pasted Max Patch, click to expand. –

is not this :

– Pasted Max Patch, click to expand. –

Viewing 8 posts - 1 through 8 (of 8 total)