Welcome to %s forums

BrainModular Users Forum

Login Register

How-to recieve OSC message from reactivision ?

General Discussion about whatever fits..
Post Reply
marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 16 Oct 2008, 19:27

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.
Try to make a Usine patch for my sound table !

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 16 Oct 2008, 21:01

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 26 Oct 2008, 22:43

Ok thank you for the answer. I will taste it soon...
Try to make a Usine patch for my sound table !

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 01:12

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 ?
Try to make a Usine patch for my sound table !

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 22 May 2009, 08:43

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....
Seb.Dub

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 08:56

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 10:23

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.
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 10:47

here an example of a config :
Image

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 11:01

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!
Try to make a Usine patch for my sound table !

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 11:17

Maybe he should rename this post.
"how to interpret the values in plants sent by osc reactivision!"
;-)
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 11:25

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 11:26

I try with this configuration but nothing appens on the fader :-(


Image
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 11:36

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 11:36

No, I am sorry to not have a good English to make me understand.
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 11:41

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 11:59

Yes but it does not I receive only one and zero, therefore I am wrong somewhere
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 12:12

i understand , that why i ask you the min /max values you receive......;-)
or are they erratic / no logic values...?

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 12:15

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?
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 12:38

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 13:12

thank you for your help
Try to make a Usine patch for my sound table !

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 22 May 2009, 14:10

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 ?
Try to make a Usine patch for my sound table !

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 May 2009, 16:26

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)
Image

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 May 2009, 23:12

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

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 23 May 2009, 10:40

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 :-D

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.
Try to make a Usine patch for my sound table !

marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 23 May 2009, 15:18

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?
Try to make a Usine patch for my sound table !

Post Reply

Who is online

Users browsing this forum: No registered users and 152 guests