Welcome to %s forums

BrainModular Users Forum

Login Register

how to activate an object only if it is in a specific area of my table

I need help on a Patch
Post Reply
marcelvincent
Member
Posts: 28
Location: FRANCE - Agen
Contact:

Unread post by marcelvincent » 25 May 2009, 19:58

I still go to work on my table sound. I use the software reactision which reflecting the position of markers for the X and Y axes and other parameters in OSC using the TUIO protocol.

Olivier helped me by providing me a module to retrieve the X and Y coordinates of the markers on the surface of the table.

I filter my well to maximum and minimum values with mathematical operations.

So far so good...

Now I'd like to understand how to activate an object only if it is in a specific area of the table.

But I can not!

Maybe this is impossible given that some information provided by TUIO are not recovered in plant.

For exemple i can't show the "set object" and "kill object" infomation...

Anyway this is what I concluded.

can someone confirm that ? or someone can give me a solution?
Try to make a Usine patch for my sound table !

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 25 May 2009, 20:09

sorry don't know reactivision but you speak about area, isn't it by saying if object X is superior at n and inferior at m and same for Y, then the object is in the area (define a virtual square in your xy table)?

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

Unread post by marcelvincent » 25 May 2009, 20:23

thank you I'll try right away.
Try to make a Usine patch for my sound table !

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

Unread post by marcelvincent » 25 May 2009, 20:35

This does not work! That's what I tried to do already without a minimum value. Just considering 0 as the minimum. So actually what you propose, it returned to the same I think!
Try to make a Usine patch for my sound table !

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

Unread post by marcelvincent » 25 May 2009, 20:45

For exemple, I want to take action on a parameter x in an area closed, but the Y will reach its maximum value but also in a specific area!
Try to make a Usine patch for my sound table !

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 25 May 2009, 22:46

Could you give some examples of the received values and how those relate to the positions and areas you're talking about? That way it would probably be easier to help you.
Bjørn S

bmoussay
Member
Posts: 130
Contact:

Unread post by bmoussay » 25 May 2009, 23:09

Hi maybe you should try using the "mapper curve" module in the data folder.

Let's say your basic area is x 0-100 (horizontal axis, 0 is left side) y 0-100 (vertical axis 0 is bottom),

If you want to create a sub area x 75-100 y 0-25 (a square 25x25 in the bottom right corner)

just use 75<x<100 and 0<y<25 in conjuction with pass and stop event flow to make sure your object is only active in the specific area.

Then do x->Mapper Curves (min in set to 75, max in set to 100, curve set to linear, min out set to 0, max out to 100).
y->Mapper Curves (min in set to 0, max in set to 25, curve set to linear, min out set to 0, max out to 100).
maybe some smoother modules to avoid "step jumps" after the mapper curve.

this way you get a "virtual" area of x1 0-100, y1 0-100 in the bottom right corner of your table.

Hope it can help, but actually I'm not really sure I've really understood your problem.

Regards,

B.

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

Unread post by marcelvincent » 25 May 2009, 23:38

I'll attached a photo of the patch and a folder .zip that you can recover at this address.

http: / / marcelvincent47.free.fr/test.zip

It contains the patch make by olivier for retrieve the data and specially to choose the id of the marker is placed on the table.
It works very well. I hope to make it evolve to share in the additions.

It also contains the table simulator that allows to test the displacement of markers on the table virtually.

That way we can analyze their data.

As against it must be factory modified version to work correctly with the protocol TUIO. It is here.

http://www.sensomusic.com/forums/viewtopic.php?id=1581

To receive messages osc must listen to port 3333.

Normally with that you can easily simulate my situation to better understand the problem.

If you can help me it's great!

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

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

Unread post by marcelvincent » 25 May 2009, 23:45

For concret exemple i try to make a virtual "active" area to mount the volume on the Y axis
which only works if the marker is in this area and there have no interaction if I move elsewhere on the table.
So I lock my property to change x in an area from 0 to 0,1. but for the Y it remains active across the table.
Try to make a Usine patch for my sound table !

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

Unread post by marcelvincent » 26 May 2009, 00:16

well I'll try your proposal bmoussay...
if I can quite understand I started a little :D
Try to make a Usine patch for my sound table !

Post Reply

Who is online

Users browsing this forum: No registered users and 86 guests