Script to make stop change button color

Welcome to the Liine forums. New users are required to post here in order to have access to the rest of the board.
zicman06
Newbie
Posts:8
Joined:29 Jan 2014 13:43
Location:Macau
Contact:
Script to make stop change button color

Post by zicman06 » 11 Feb 2014 07:03

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 !!!!!

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: Script to make stop change button color

Post by Phil999 » 11 Feb 2014 08:51

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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

zicman06
Newbie
Posts:8
Joined:29 Jan 2014 13:43
Location:Macau
Contact:

Re: Script to make stop change button color

Post by zicman06 » 11 Feb 2014 09:49

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 !!!!!

zicman06
Newbie
Posts:8
Joined:29 Jan 2014 13:43
Location:Macau
Contact:

Re: Script to make stop change button color

Post by zicman06 » 11 Feb 2014 11:05

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 ??

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: Script to make stop change button color

Post by Phil999 » 11 Feb 2014 12:15

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.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

zicman06
Newbie
Posts:8
Joined:29 Jan 2014 13:43
Location:Macau
Contact:

Re: Script to make stop change button color

Post by zicman06 » 11 Feb 2014 13:38

you can have my template follow this link



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

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: Script to make stop change button color

Post by Phil999 » 11 Feb 2014 18:21

maybe this does the trick?
Attachments
LISA ANGELL CONCERT_editPS.jzml
(4.4KiB)Downloaded 92 times
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

zicman06
Newbie
Posts:8
Joined:29 Jan 2014 13:43
Location:Macau
Contact:

Re: Script to make stop change button color

Post by zicman06 » 12 Feb 2014 00:51

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 !!!!

zicman06
Newbie
Posts:8
Joined:29 Jan 2014 13:43
Location:Macau
Contact:

Re: Script to make stop change button color

Post by zicman06 » 12 Feb 2014 01:45

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 ????

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: Script to make stop change button color

Post by Phil999 » 12 Feb 2014 13:29

simply continue with this method. Add additional scripts, executed by the other buttons.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

Post Reply