Page 2 of 2

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 16:46
by ecce_cello
i have an important perfromance next 25th. i thank you a lot for trying to help me. that's why i am desperate.

but it doesn't work. now it blocks all midi out, alright, but i NEED the visual feedback of the pads. that's why i am trying to block midi out, so i can turn the lights on/off touching them, taking as a reference the tracks of loopy that are currently playing. once my controller and loopy tracks are the same (highlighted the ones which are playing, darker the ones muted), then i can get away from my ipad looper, on stage, having in my hand my small ipodtouch, and i have a visual reference of what is going on in loopy (away from me, in my ipad).

i need the pads to respond change their state as i press them, but NOT sending midi out meanwhile i set them. or simply sending midi in other channel!! or sending midi to another target... isn't that possible? to dynamically change midi channel out?

i hope there's a way to make this... already 4 days gone.

one thousand thanks!

david

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 16:47
by electrofux
Is that not working? I always use this when wanting totemporarily turn off Midi on an object.

1 Trigger Pad with a Script on x

if (Active.x==1)
{ctlout(0,c,x*127,1);}
else
{return;}

Of course turn off the Midi Target in the Mapping WIndow. Maybe you have to fiddle around with the trigger options on the Trigger Pad. Not sure if it works when set to "any". Doing this out of my head.

When i need input from an external Program while Midi Out on that object is disabled it make an On Midi Script that handles the Input.

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 17:09
by ecce_cello
thanks a lot electrofux,

but as it says under my user name, i am a newbie... what's an "On Midi Script"? where should i put it? what is the "Trigger pad"?
i am not just asking "do this for me", but i swear i have tried for my self a lot of hours, searching, reading, trying to transform other projects from other people. only once i was really desperate and couldn't sleep i came here.

i haved tried several options to put your lines in scripts, but nothing works.

omg

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 17:35
by ecce_cello
i keep trying... how do i put a script on "x"?

can anybody out there help me?? i thought blocking midiout messages from a "Switches" wouldn't be a big deal!
i'm going to need taking tranquilizers...

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 18:11
by electrofux
You make a Pad or Switch or whatever you want to send out Midi and then select it and add a script (Bottom right in the Lemur Editor). The script can then be set to different triggers (on Midi, on expression erc.). There you select on expression and put an x into the Trigger field. That means whenever the x of the object (you Trigger Pad or Rotary) changes the code that you insert into the scrip gets executed.

The script that i wrote sends out the midi it would normally send through the Mapping Window on the top left with the difference before that is done you can ask if the Midi On/Off Button (named Active in the examples) is 1 or 0. If it is 1, send out the Midi if not, dont do anything and return.

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 18:53
by ecce_cello
thanks for your time electrofux, i followed your instructions (half an hour more).

i have created a Switch1 with only one switch, then a Switch2. I turn off (?) midi target by unchecking the "x" in the right down corner, inside the folder of Switch1. Change name of Switch2 to "Active". i have added an script to Switch1, that says (my midi target is 1)

if (Active.x==1)
{ctlout(1,1,127,1);}
else
{return;}

then i have set "execution": on expression, and i wrote an X in it.

i press it. nothing happens in my other idevice. when i try other lemur templates, alright, midi works, all works. but this template simply doesn't send anything out.

has anybody got valium over there?

Re: Switch ON/OFF Switches midi out

Posted: 12 Jan 2014 20:10
by ecce_cello
it works!!

it took me 2 more hours to understand all the variables and put all of them right. thanks to you electrofux. i really appreciate your help.
now i can tell to my self:

rest in peace.