Page 1 of 2

Script to make stop change button color

Posted: 11 Feb 2014 07:03
by zicman06
Hello i'm New on this Forum , I try actually to build a simple session on Ipad Lemur with ableton Live 8 !!!! What I try to do is very simple just used Pad to trig the sequence in ableton live 8 , the Pad contain the name and his color is Blue , when I press and send the sequence the button become Yellow , What I want to do it's a script than when i press the Pad stop , he make change the color back to blue !!!
I hope it's clear , cause for know when i send a sequence the pad stay yellow even i press stop and if i send another sequence the over pad because yellow and at the end you don't know the song you play ???

so if someday can give me a script , i used the Ipad in Midi with iRig midi plug direct on my midi card who is plug in usb in my computer


thank u for your response !!!!!

Re: Script to make stop change button color

Posted: 11 Feb 2014 08:51
by Phil999
welcome to the forum.

I assume you use a Switches object that goes to yellow when it is on. Blue: Switches.x=0, yellow: Switches.x=1. Now you can add a script in the play button (probably a Pads object):

Switches.x=0;

executed on expression x.

I hope this helps, tell us how it is going.

Re: Script to make stop change button color

Posted: 11 Feb 2014 09:49
by zicman06
i forgot to say that i used CC to control ableton so my Pad transmit a CC control and the Stop used the CC1 to stop , i am really a beginner in a script
if i understand it's better to used a switch button , but i need to try first to know , in fact i don't used the play button when i press the Pad he play the sequence directly !!!!

thank u very much for your response i will try and let u know

but if you have another idea with a full script i will enjoy !!!!!

Re: Script to make stop change button color

Posted: 11 Feb 2014 11:05
by zicman06
So i try it and it does not work in fact i want that my stop button make change the color it mean blue=off yellow=on when i press stop yellow become blue

that what i want to do !!!!!

o when i trig the sequence it become my Pad or Switch become yellow and when i press stop he come back blue

it make sens ??

Re: Script to make stop change button color

Posted: 11 Feb 2014 12:15
by Phil999
maybe you can post your template so that we can have a look. One thing to remember: Lemur can change the appearance of objects, but if it depends on feedback from the software, one first has to make sure the software is sending this feedback.

Re: Script to make stop change button color

Posted: 11 Feb 2014 13:38
by zicman06
you can have my template follow this link



https://app.box.com/s/806rkz92oi3pekzibjfw

Re: Script to make stop change button color

Posted: 11 Feb 2014 18:21
by Phil999
maybe this does the trick?

Re: Script to make stop change button color

Posted: 12 Feb 2014 00:51
by zicman06
YOU ARE THE BEST !!!!! thank u so much , very simple for u for sure but when you begin on script it crazy !!!

thank u for your help i really appreciate !!!!

Re: Script to make stop change button color

Posted: 12 Feb 2014 01:45
by zicman06
I have another question , if know i want also that when i pass from button 1 to button 2 he put blue on button 1 when i press button 2 ..... he it complicate ????

Re: Script to make stop change button color

Posted: 12 Feb 2014 13:29
by Phil999
simply continue with this method. Add additional scripts, executed by the other buttons.