Page 1 of 1
Posted: 16 Oct 2008, 19:27
by marcelvincent
Hello,
I try to establish a communication between Usine and reactivision using the Osc protocol .
I know that reactivision transmits information to reactivision Osc at 127.0.0.1:3333.
But:
I do not understand how to set the table setup Osc Factory to retrieve this information.
But I do not understand how to set the Osc recive module.
Could someone help me?
Thank you.
Posted: 16 Oct 2008, 21:01
by senso
actually the beta10 can't receive osc data as local host.
It means that if you are running reactivision on the same computer than Usine you can have some troubles...
Good news, will be fixed in the beta11, coming soon.
otherwise, to get osc message in a patch proceed as follow:
1) open osc setup,
2) activate osc
3) (in the beta11) activate localhost monitoring if you need it (try first without)
4) verify you receive osc infos (osc msg are listed in the osc setup window) some thing like '/reactivision/data ff'
5) put on a patch a OSCReceivex8 for example.
6) set the 'addr' to the osc addr (like /reactivision/data)
7) the''ff' means that you receive 2 float data's at the same time (data1 & data2)
normally should works..
Posted: 26 Oct 2008, 22:43
by marcelvincent
Ok thank you for the answer. I will taste it soon...
Posted: 22 May 2009, 01:12
by marcelvincent
Ok it's now already working.
But i use reactivision and it send Osc messages using a protocol called Tuio.
I want to make a tangible interface and control sound parameters with my fingers.
So i make it and it's working good.
we can see it here for a better comprehension !
http://www.dailymotion.com/user/marcelv ... e_creation
Now i try to make a patch for modulate synth with the finger or the object position on the table on the axes x & y.
I see that reactivision send osc messages which change when i move the object or the finger on the table.
But i dont uderstand in Usine, how to assign/interprate the osc message i recieve to the modulation of a fader ...for exemple !
I think i need to filtering or analyse the incoming osc message but i dont find how to do.
can someone have an idea to make this ?
Posted: 22 May 2009, 08:43
by ethnix73
Hi marcelvincent,
You've got to put an "OSCreceive" module. Type in the right adress in "adrr", and wire data1 (if it's the "OSCreceiv1" module) to your fader....
Posted: 22 May 2009, 08:56
by nay-seven
great !
well done !
do you use also the projector for visual feedback...?
btw , for osc message can you give us example of message you receive...?
Posted: 22 May 2009, 10:23
by marcelvincent
Bonjour.
Thanks for your help.
I have tried to put a module OSCreceive.
I think that I have the parameter values sent by the movement of my object through a xml file. Finally I guess because when I connect the module "OSCreceive" my button it freezes immediately on its maximum value. So I'll look for that side.
I do not use visual feedback for the moment I have no camera infrarouge.J advance step by step.
But I intend to have a visual feedback for controlling factory with my fingers on a surface of 100 x 80.
For the moment I am looking for the next osc modulate parameters with my fingers and objects on my tangible interface.
Posted: 22 May 2009, 10:47
by nay-seven
here an example of a config :

Posted: 22 May 2009, 11:01
by marcelvincent
Yes thank you. For this I have no problem. What I can not do is to interpret these messages by the module "OSCreceive" to forward to my button moving my object. In the same manner as a summons noon. But I do not know if it is so simple that I imagine, or as people claim!
Posted: 22 May 2009, 11:17
by marcelvincent
Maybe he should rename this post.
"how to interpret the values in plants sent by osc reactivision!"

Posted: 22 May 2009, 11:25
by nay-seven
ok , so you receive values in the osc module , with minimum/maximum values...?
if yes , convert them with math module to adapt them to your wish...? if 0-127 divide by 127 give you 0-1 and so..?
and sorry if i don't understand the problem..
Posted: 22 May 2009, 11:26
by marcelvincent
I try with this configuration but nothing appens on the fader

Posted: 22 May 2009, 11:36
by nay-seven
strange patching..and can't work for me..
can you give me the min/max values you receive..?
not only on the receive outlet but also the data outlets ones..?
Posted: 22 May 2009, 11:36
by marcelvincent
No, I am sorry to not have a good English to make me understand.
Posted: 22 May 2009, 11:41
by nay-seven
no problem , English is not my native language too ,
have you tried to link the data outlet directly to your fader ..? it's the simplest way...
Posted: 22 May 2009, 11:59
by marcelvincent
Yes but it does not I receive only one and zero, therefore I am wrong somewhere
Posted: 22 May 2009, 12:12
by nay-seven
i understand , that why i ask you the min /max values you receive......

or are they erratic / no logic values...?
Posted: 22 May 2009, 12:15
by marcelvincent
So, from what I understand Usine sees the presence of the object and its ID. PAr against it does not receive information related to the displacement of the object so it is normal that I did receive anything in my fader.
So I get the message:
CSOs from 127.0.0.1: / tuio/2Dobj (sii)
If I look at the table in this doccument:
http://www.tuio.org/?tuio11
I see that I have my item (s) and ID (ii)
In this page it is referred to a oscpack.
http://www.audiomulch.com/~rossb/code/oscpack/
is what I lack something between plant and reactivision to translate every message sent by reactivision?
A bridge can be?
Posted: 22 May 2009, 12:38
by nay-seven
no idea..sorry
i suppose you have to resolve this first and finally the good question is how to receive the right values..
so maybe first answer from senso is always the good one..?
don't know , i feel he can answer soon...
Posted: 22 May 2009, 13:12
by marcelvincent
thank you for your help
Posted: 22 May 2009, 14:10
by marcelvincent
I tried with bidule and I had no problems to see variations on the axes x and y and 7 and the presence of the marker!
So i think thant the oscrecive module in usine are not adapted to interprate all the message of the Tuio protocol !
Is it right Olivier ?
Posted: 22 May 2009, 16:26
by nay-seven
ok, i've done a little test quickly and i've strange results too..
very big values with the fiducial or with finger ( Dobj or 2Dcur)

Posted: 22 May 2009, 23:12
by senso
in the latest version (4.21) there is a small bug on osc bundles management.
so tuio messages aren't received properly.
the bug is fixed now but but it's too late for the 4.21...
I'll send you the 4.21b by mail which solve the pb.
but the osc protocol of the tuio is hard to decode...
Posted: 23 May 2009, 10:40
by marcelvincent
It's all right now !
I thank Olivier for his help and responsiveness. I received the revised version with a patch for my table. after a little time all seems to be working good for me.I 've found how to identify the markers
Now I have to look at and learn the subtleties of the patch construction and if i can, add the rotation and if I can speed and something like on/off.
When I see the first tests with simple sliders on synth I feel that my table will give a new dimension. In any case I hope.
Posted: 23 May 2009, 15:18
by marcelvincent
So now I am quite fast with the help of Olivier.
I have now an other problem to solve.
I recover the rotation parameters of my markers. I want to control with a button rotatif.But when I turned my marker and it reaches its maximum value. I have a shift button and the value returned at once to a minimum. I would like to ensure that when it comes up it remains blocked until it turns the marker in the other direction.
Have you any idea?