General

How to address the individual pads in a multipad

Started by mh175 on .

Sign in or create an account to join the conversation.

10 posts

Oops, maybe I asked the wrong question.
How do I assign different output values to each pad in a multipad object?For example, I want Pads.x[0] to output program change 1, and Pads.x[1] program change 2.
Thanks
you may want to set the Pads object to 'radio' so that only one prg ch command is sent. Then create a script in the Pads object:
if Pads.x[0] (send program change 1);
if Pads.x[1] (send program change 2);
etc.

Use the correct command for program change, I don't know it out of my memory. See the manual and some example templates. Sorry.

This will probably give a long list. You can make it short with declaring a variable like i.
decl (i==firstof(Pads.x));
if Pads.x[i] (send program change i+1);
You only need to know the program change command, and it's done.
Hi Phil
Have you tried setting up the adhoc with Static IP's on both devices? It should work then . .

Also, you can actually avoid the scripting completely if you want, by using Custom MIDI
Select your Switches then make a Custom MIDI mapping within it- called say PgmCh.
Choose Program Change for the Message type
Then enter an array of PgmChange values ie {1,2,3,4} for a 4 switch setup.
Choose x for the Trigger and 'Rising' edge for when the message is sent at the end of that line.All others to none.
Finally either deselect the x value or make sure that is not setup for anything.

Thats it, all done

Cheers
MM
good idea, thanks.
Macciza wrote: Have you tried setting up the adhoc with Static IP's on both devices? It should work then . .
I always had static addresses, but after updating to iOS 6, ad-hoc didn't work anymore. There was also no network symbol when I connected to the ad-hoc. With a Mac (a real one, which I don't have) it may work, but on my Windows laptops no more. Maybe it's the wireless card, maybe it's the OS, I don't know. It was fine under iOS 5.

But maybe we should discuss this here:

http://liine.net/forum/viewtopic.php?f=25&t=1749&start=30#p7322