jit.spill Data
Hi, I'm very very new to maxMSP/Jitter and currently in a class for it. In there I am trying to accomplish a sort of visiual audio instrument. Here is what the program can do so far.
1) Grab live video
2) Turns it into a black and white image
3) Distorts it to the point of it being only black, gray and white lines. (Part of the Jitter examples found on this site)
4) Goes into a pwindow
5) Spills out data from window into a 320 multislider with a min of 0 and max of 1
A few things I am trying to understand and accomplish here. First off the data that is spilled from the video, it is a list of some kind. How do is it set up, so that I can read values from it.
Second, in this list wish to find "humped" regions in the value. For example, if I were to put up 2 fingers in the camera view in the multislider there were be 2 regions showing a brightness increase. So I wish to have the program go though the numbers see these humps then sudden dips and say: "Hey there are two humps, there for I shall play two note..." So is there any way to store and move though these values? My professor told me of Javascripting...would that be possible to use?
And last and for most, how would I "normalize" any kind of disturbance. I plan to have the camera aimmed at a black felt of something and there would be refected areas. Is there anyway to sample it for a few seconds, then lower the average of the all the brightness lines. This would make it easier to dectect and read motions.
I thank you very very much to any and all who read this. Any form of help would be most appreciated. Thank you
NeoSpawn
> 1) Grab live video
jit.qt.video
> 2) Turns it into a black and white image
jit.rgb2luma
> 3) Distorts it to the point of it being only black, gray and white lines. (Part of the Jitter examples found on this site)
jit.matrix
the matrix can be one plane and the char data can be of 1 column and many rows.
> 4) Goes into a pwindow
> 5) Spills out data from window into a 320 multislider with a min of 0 and max of 1
>
> A few things I am trying to understand and accomplish here. First off the data that is spilled from the video, it is a list of some kind. How do is it set up, so that I can read values from it.
>
there are several ways of doing this.
look at the capture object among others.
> And last and for most, how would I "normalize" any kind of disturbance. I plan to have the camera aimmed at a black felt of something and there would be refected areas. Is there anyway to sample it for a few seconds, then lower the average of the all the brightness lines. This would make it easier to dectect and read motions.
>
look at the xray objects. in particular....
also look at this
https://cycling74.com/forums/index.php?t=msg&goto=610 40&rid=3021&S=61fbf510291494a913039f47fb496c27#msg_6 1040
it is an example motion tracker.
and this
https://cycling74.com/forums/index.php?t=msg&goto=642 74&rid=3021&S=61fbf510291494a913039f47fb496c27#msg_6 4274
it is something similar to what you are looking for.
and also search the archive for motion tracking (it is the little magnifying glass above this post)
if you have any more questions you can pm me and i can help you out.