Data storage advice/tips

Jan 14, 2013 at 10:04pm

Data storage advice/tips

Hi!

I’m a big big patch and right now im trying to find a solution to one of its function. In this patch I’m steering a dot in a X,Y coordinate system rangeing from -0.5 to 0.5. The range is the scaled to a grid rangeing from 0 to 10 in a sub patcher. The goal is then to keep track of how long this dot, that im steering, has been in each grid, totally. Get it?

I’ve made an patch that wont do the trick but it might be of help understanding.

– Pasted Max Patch, click to expand. –
#66071
Jan 14, 2013 at 11:00pm

haven’t really tested it, but maybe something like this??

– Pasted Max Patch, click to expand. –
#237869
Jan 15, 2013 at 11:16am

Yes that works in one way. But I don’t get the time, I get how much I’ve moved within this 10×10 square. I need it to count seconds :/ Another part of the patch actually does this with “Anal”.

Uploaded a text file you can load into coll.

/Max

Attachments:
  1. Coll10x10.txt
#237870
Jan 15, 2013 at 1:54pm

this isn’t perfect but you get the idea– use a matrix to store and modify your data

– Pasted Max Patch, click to expand. –
#237871
Jan 15, 2013 at 5:02pm

Yes that did it! Many thanks! And that solution gave me another idéa to work on :) Change the color of every pixel in the jit.pwindow depending on time. LoveMax

#237872
Jan 16, 2013 at 12:16am

I made some slight changes (objects coloured) so it’s a bit more reliable. (Needed pack instead of pak, a speedlim added and args to scale tweaked).
-T

– Pasted Max Patch, click to expand. –
#237873
Jan 31, 2013 at 7:30pm

This works really good!

#237874

You must be logged in to reply to this topic.