(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?
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..