Forums > MaxMSP

data stream variation amount

January 20, 2013 | 11:50 am

Hello,
I need to have the numerical amount of the variation in a numerical data stream,
i have the left hand movment data coming from kinect and i want to use the velocity of movement for setting the volume of a sfplay.
so the faster i move the louder the volume

i’ve try to see in the old posts but i can’t find..
is there any way?
i hope the question is clear, my english in not so good .
many thanks
carl


January 20, 2013 | 3:51 pm

Hi,

you might want to have a look at and experiment with my [sadam.stat] object (see http://cycling74.com/forums/topic.php?id=42930 ), which will give you the mean, standard deviation, minimum-maximum values and the element count of a data stream. However, I’m not 100% sure that it would be a real solution for your problem, which might be better solved with some sort of a ‘compute the incoming differences and smooth it out’ approach.

Hope that helps,
Ádám


January 20, 2013 | 7:35 pm

many thanks Adam ,I’ll try tonight .thanx for your job
carl


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