Implementation of the GESTUIO Subclasses
Working in my Abstract_GESTUIO class. At the moment It has two subclasses: the GESTUIO_2Dobj for tracking fiducials and the GESTUIO_2Dcur for blob detection.It shows how to use TUIO from Reactivision for a basic type of installation. It works solely from data received from Reactivision (v1.4) and Community Core Vision (v2.4). Run on MAC OS Snow Leopard.
On each subclass i have use a different OSCresponder according to the TUIO set profile i want to use.
Here is the code for the “GESTUIO_2Dobj” OSCresponder
makeResponder {
^OSCresponder(nil, ‘/tuio/2Dobj’, { | time, resp, msg |
this.respondToOSC(msg[1], msg[2..])
});
}
and, for the “GESTUIO_2Dcur”
makeResponder {
^OSCresponder(nil, ‘/tuio/2Dobj’, { | time, resp, msg |
this.respondToOSC(msg[1], msg[2..])
});
}
On each subclass i have implemented a SynthDef in order to produce a generated sound each time that any of the following events occur: object/blobBorn = a new object or blob is born, object/blobDied = a object or blob has died and objectMoved = a object has moved.
Here is a simple code example for one of my SynthDefs:
SynthDef(“ObjectBorn”, {
Out.ar(0, LFSaw.ar(Rand(400, 4000), 0, 2))
}).send(Server.default);
Finally, i have spend another 30mins to tide up my code and backup my files.
Cygnus Thu, 18 March 2010, 17:22PM