change the value of the y Coordinate in jit.p.window

Jul 27, 2012 at 12:15pm

change the value of the y Coordinate in jit.p.window

(here’s the patch, add some wav file to the buffer and open the camera on the upper left, than open the ezdac~)
how do I change the value of the y Coordinate so that when my head is low- the music will get slower?
thanks!

Attachments:
  1. ahalanpatch.maxpat
#63754
Jul 27, 2012 at 3:08pm

I’ve tried to use Jit.rota but it doesn’t do it, please I need your help because I gotta get shit down fast (school project).
heres another patch (doesn’t do it)

#229952
Jul 27, 2012 at 3:46pm

If you connect a jit.print object to the outlet of cv.jit.faces you will see that numerical 4 values are outputed which represent the location of the detected face (which is drawn by as a green box by cv.jit.faces.draw).

It is a matrix with 4 planes, and if you just want the y-location you can concentrate yourself to the second plane (value) of this matrix.

So if you connect a “jit.spill @plane 1″ object to cv.jit.faces you get a value that you can connect with the speed of the sound. You might want to slide / smooth the value as well..

#229953
Jul 27, 2012 at 4:52pm

Okay, I got you on that one, thanks!
but how do I flip the 0 into a 50, and the 50 into a 0? (rotate the Y-location)

#229954
Jul 27, 2012 at 5:43pm

have a look into the scale object

#229955
Jul 27, 2012 at 6:26pm

you don’t have a clue how much of a great person you are. thanks a lot!!! :)

#229956

You must be logged in to reply to this topic.