General
How to address the individual pads in a multipad
Started by mh175 on .
Sign in or create an account to join the conversation.
Hello,
What is the script that allows me to address individual pads in a multipad? So if I click Pads[0] I get one result, if I click Pads[1] I get another?
What is the script that allows me to address individual pads in a multipad? So if I click Pads[0] I get one result, if I click Pads[1] I get another?
the Pads object outputs an array {x,x,x,x,...}, the first pad is Pads.x[0], the second Pads.x[1], etc.
You can use a Monitor object with 'Pads.x' in the value field to observe how it works.
You can use a Monitor object with 'Pads.x' in the value field to observe how it works.
Thank you!
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
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:
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.
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.Thanks that's perfect. Much appreciated.
I'm glad you could make it, because at the moment (since a week, iOS 6) I can't connect to the editor anymore and am pretty much out of the game.
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
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.
But maybe we should discuss this here:
http://liine.net/forum/viewtopic.php?f=25&t=1749&start=30#p7322
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.Macciza wrote: Have you tried setting up the adhoc with Static IP's on both devices? It should work then . .
But maybe we should discuss this here:
http://liine.net/forum/viewtopic.php?f=25&t=1749&start=30#p7322
Is this what you mean — http://liine.net/en/community/user-library/view/152/mh175 wrote:Hello,
What is the script that allows me to address individual pads in a multipad? So if I click Pads[0] I get one result, if I click Pads[1] I get another?