airscan detection send midi in different areas

Moderator: Moderator Group

airscan detection send midi in different areas

Postby rubendesnoo » Fri May 04, 2012 4:55 pm

Hi

I have made a set up with the airscan and ableton.
I would like to send four different midi note on signals per detection area of the airscan.

So you can move your hand in the area and send different midi notes.

The problem I have here, is that I use some if objects witch sometimes halts it last received value, or the airscan doesn't refresh.
I want them to go to zero, because I want a note off sended on the moment I leave the airscan area.

Is this possible?
Is are my used objects okay or should I use some different combinations?

regards
You do not have the required permissions to view the files attached to this post.
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands

Re: airscan detection send midi in different areas

Postby JustynR » Fri May 04, 2012 9:39 pm

I could not open your file... something about an RFID something or other making it fail to open... I got an error message.

Anyways, I quickly made a Widget doing what I think you were looking for.

I activated the mouse on the airscan and added some buttons...
The buttons I have contain scripts that change variables when you "Mouse Over" the button - so when the Mouse enters the space that the button is in, it changes a variable - once you leave the button area, it changes the Variable back.

This variable feeds into a script.
This script also has a Multi Touch Airscan node attached to it.

The Script is comparing the Variable to the "Active" value in the Airscan node. IF both = 1, then it changes the value of another Variable that is connected to the Digital Display on the front page.

The reason that I didn't use the "ELSE" feild in the bottom was because it was causing odd errors where the number in the Digital would never change, or would change and go quickly back - probably because all of the Script Nodes could not all be "TRUE" and would be outputting a 0 from the "ELSE" feild.

I hope this all makes sense... If not... I attached this WD file.

Please let me know if you have any questions.

Justyn
You do not have the required permissions to view the files attached to this post.
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 560
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: airscan detection send midi in different areas

Postby Markus Zeppenfeld » Mon May 07, 2012 8:41 am

Hey guys,

shall the value only be send while having the hand inside the area and go back to zero after getting the hand out?
If yes, what about directly setting the button to send the midi command. Maybe as a flash button to send another value while releasing.

This way you do not need a single variable or node. Just 4 buttons...

Does this help as well?

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: airscan detection send midi in different areas

Postby rubendesnoo » Tue May 08, 2012 10:36 am

Justin, Thanks a lot, this helps.
Maybe this error is because I had two HD screens connected when saving my file, when I tried to open this with one screen connected it didn't open. This patch only work with one hand a time I guess?

@Markus, also good idea!

Lets build this!

regards
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands

Re: airscan detection send midi in different areas

Postby rubendesnoo » Tue May 08, 2012 12:52 pm

Hi,

Now I'm testing it seems to me there are stil two things I need to deal with:
- When my hand leaves the airscan beam, the mouse will stay on top of the button, so it will send a note on in stead of a node off.
- Is there a way to use two airscanpoints in a time?

thanks
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands

Re: airscan detection send midi in different areas

Postby JustynR » Tue May 08, 2012 1:34 pm

I didn't realize that you wanted to do more than one hand...

Try and use the Multi Touch Panel and put those commands into the panel itself? I think that it also looks for the Mouse though, I don't think that just the point will activate it...

That is actually something that would be really handy (if it doesn't) is to have the point activate a script when it enters a box in the Multi Touch panel.... I don't ahve WD with me right now, so I can't check if it does - and I don't remember...
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 560
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: airscan detection send midi in different areas

Postby malkuth23 » Tue May 08, 2012 3:59 pm

Yeah Justyn. You can trigger a script with multi-touch-panel. You just have to copy and paste them into the little grey boxes. There is no dropdown menu listing the scripts.
Matthew Newman-Saul
Theatrical Concepts
mattns@theatrical.com
User avatar
malkuth23
 
Posts: 354
Joined: Tue Apr 20, 2010 7:14 pm
Location: New Orleans, LA

Re: airscan detection send midi in different areas

Postby Markus Zeppenfeld » Tue May 08, 2012 6:36 pm

Hi Ruben,

regarding the mouse leave position:
You could add a command to set the mouse to a different position to "release" the mouse-over while leaving the AirScan.
MouseMove,'XPos','YPos'

This is nothing about the second input, of course, but this could solve the issue with the remaining mouse.

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: airscan detection send midi in different areas

Postby JustynR » Tue May 08, 2012 7:56 pm

Hi Matthew,

Thanks... what I was trying to say... you can use a mouse over script with the Multi Touch Panel, BUT you can't just use points - so we can have more than one "Quadrant" active at the same time.

This is actually very ironic, I just got a phone call this morning asking if I could put this over an audience and have each section of the audience set up to play a different note... that way the audience could play a song when the way presenter asks them to...

The only way I can think to do this is to only have ONE section raise their hands at once... because they are moving the curser. If there is a second set of hands, or a second hand, it would be ignored because only 1 moves the mouse.. and only the mouse works for the "Mouse Enter" box in the Multi Touch Panel and for buttons.

It would be great if you could have say 6 buttons via the Multi Touch Panel, you could activate any 6 of these with a Multi Touch Point via the Airscan say 1 through 6... one is on each button...

Does that make sense?
Justyn Roy
Toronto Ontario Canada
JustynR
 
Posts: 560
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: airscan detection send midi in different areas

Postby malkuth23 » Wed May 09, 2012 6:20 am

Uhg... I think I do get what you are saying.

You could use a bunch of Airscan input nodes and then route the code to check its position and execute a script. A bit cumbersome, but I think it would work.
Matthew Newman-Saul
Theatrical Concepts
mattns@theatrical.com
User avatar
malkuth23
 
Posts: 354
Joined: Tue Apr 20, 2010 7:14 pm
Location: New Orleans, LA

Re: airscan detection send midi in different areas

Postby Markus Zeppenfeld » Wed May 09, 2012 9:46 am

Hey guys,

I would do it the following way:

- connect the airscan
- place an AirScan MultiPoint input node
- two if nodes for x and y restriction
- true output value set to the same value (e.g. 99)
- false output value set to different values (e.g. 1,2,3,4,...)
- one if node to compare the output values to be the same
- one script output node to send the midi value (in my example a tint switch of a button)

The reason to have different false values is, that having it set to quarters and using the states it would be 1=1 and 0=0 to send the value. With this setting it would be true in the top left and bottom right quarter.

Hope this helps ...

Cheers
Markus

AirScan vs. Midi.png
You do not have the required permissions to view the files attached to this post.
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: airscan detection send midi in different areas

Postby rubendesnoo » Wed May 09, 2012 12:15 pm

Hi Markus, I can't open your file, something about an unknown fileversion:223.

But I think I also did find a working situation for me.
This is made for one point, but I could simply copy the whole patch and connect it to the second multitouch point.

I divided my x-ax range into 4 sections, which will be (midi) keys of an "Air-piano". It would be great if the Y-ax will be the velocity of the current midi note.

There's only one thing I couldn't get work, the "velocity" value keeps sending "notes on", instead of only a velocity of 1-127.
Do I need to merge midi boxes to get this done?

My knowledge of the midi protocol is not very extensive, but am I using the right midi-boxes for this kind of programming?
What do the modes 8-14 mean anyway in the box: "Midi-output vealue".

best regards
You do not have the required permissions to view the files attached to this post.
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands

Re: airscan detection send midi in different areas

Postby Markus Zeppenfeld » Wed May 09, 2012 1:01 pm

Hi Ruben

Unfortunately I am not really into this midi stuff as well.

Have a look at this file on page 4.
http://www.nyu.edu/classes/bello/FMT_fi ... I_code.pdf

Otherwise try to use the output node "Midi note". I think this will be more of the stuff you need, but I am not 100% sure.
Is maybe your if clause still at the value that you midi output is sending on?

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 18 guests