Page 1 of 2

How to change button colours on iPad

Posted: 28 Oct 2012 05:19
by bhardy
Hi there,
I have been endlessly searching how to make the buttons on the ipad respond to changes from Ableton by changing colour.
I thought would be a standard part of Lemur programming and relatively simple thing to do but I have spent days trying to work it out!!!
I've got a series of big events coming up and I've got to make it happen somehow!
I have created a simple Lemur grid of 70 buttons for launching clips in Ableton live.
This has been easy and has just meant assigning buttons in Midi Mapping to Ableton.

When I launch a new clip I want the previous button to change colour on the iPad to show that the previous clip has been turned off. Unfortunately I don't think a "switch" button would work because it can't deactivate itself, which I'd also need to do.

Can anyone give me a basic script to work from?

Re: How to change button colours on iPad

Posted: 29 Oct 2012 06:04
by Macciza
Hi
Have a look at the attached project
7-10 _Grid.jzml
(4.46 KiB) Downloaded 193 times
It is a simple grid of Switches set to Radio mode - the larger grid at the bottom
Above it is an array of Pads whos single midi message makes it easier to set things up

Place your clips into a single track in Live and mapped to CCs 1 to 70 and its good to go
Only one square lights at a time which is the playing clip but it does not retrigger

Hope this helps
MM

Re: How to change button colours on iPad

Posted: 29 Oct 2012 18:53
by bhardy
Hi Macciza

Thanks a lot for sending the lemur template with the grid of radio switches.
It works well except it is impossible to deactivate a button without touching a different button.

We're having to do 3 events starting on Thursday and need to have each of the buttons on the grid on the ipad turn on and off in response to what is happening in Ableton, which your setup does. But we also need to be able to deactivate the clip we have just played by tapping on the same clip (and therefore the same button on the grid), and have that also show up on the ipad grid.
Its easy enough to set up in Ableton by setting the launch mode to "toggle" but it seems the nature of a radio switch is that it can't turn itself off by tapping a second time.
Any ideas?
We thought this would be reasonably easy but we're new to Lemur, don't know much about script and we're getting a bit worried because we've got 2 more days!!!

Re: How to change button colours on iPad

Posted: 30 Oct 2012 05:42
by Macciza
Hi
Try this
It is a modifiied version of a module posted here http://liine.net/forum/viewtopic.php?f= ... adio#p5495
7-10 _Grid.jzml
(9.5 KiB) Downloaded 132 times
Set your samples to 'Toggle' for launch mode and that they are set to loop and it should work.
There is an extra Fader and switch that you could map or delete

Cheers
MM

Re: How to change button colours on iPad

Posted: 30 Oct 2012 12:22
by bhardy
Hi Macciza,

Thanks again for the new module.
Unfortunately the original problem is back. The grid on the ipad does not show which clip is being played and which has been deactivated.

It's becoming a big nightmare and we only have until tomorrow evening to work it out!!
If you have any other ideas or know a basic script we could mofify that would be great

Cheers,
Ben

Re: How to change button colours on iPad

Posted: 30 Oct 2012 22:35
by Macciza
Hi
So do you want three colours? Not 2?
That set up should show which switch is playing and turn off when pressed again.
Do you want off, playing and last played as separate states/colors?

MM

Re: How to change button colours on iPad

Posted: 31 Oct 2012 14:41
by Macciza
Hi Again

Try this one out . . .
7-10 _Grid.jzml
(10.49 KiB) Downloaded 192 times
This one dims the Pad if you press it a second time . . .
It shows what is currently playing, if it is stopped , it shows which clip it stopped on.

Does this do sort of what you want ?

Cheers
MM

Re: How to change button colours on iPad

Posted: 09 Feb 2013 23:00
by audioramdam
Hi,
well ,i have the same problem a few months later.
no solution.
I'm very surprised that we cannot do that in Lemur.
I tried it in Midi Touch and it's very easy : there's a "latch" option, when you edit your pad and it works !
and it is very useful : when you're playing with long sounds, you can visualize those who are playing and when they stop.

Anybody who knows how to do it, really ?
let's say :
colour of the pad : yellow
when the file is playing : white
when you stop the file : returns to yellow
when the file is ending : returns to yellow
same thing with a looped clip

there are problems withe the note off , if you use a note message
there are also problems if you use a cc
if you use in and out remote in Live, it should work , but , simply don't !

Anybody can help ?
thanks a lot in advance

Re: How to change button colours on iPad

Posted: 10 Feb 2013 00:47
by Macciza
Hi,
Don't know what you mean 'no solution' - did you look at the above patch? It works, you just need to set up mappings in live
Have you checked out the numerous other Projects for Live that do this sort of thing? Right down to 'flashing' the next clip like in Live . . .
Have you looked through the manual? There are Pads(momentary), Switches(latched), CustomButtons (either) . . . Far more options than MT . . .
Post the part of the project that you are having problems with rather than just describing it often helps . . .
Though the solution will most likely be just taken from the project above . ..
Cheers
MM

Re: How to change button colours on iPad

Posted: 10 Feb 2013 15:12
by audioramdam
thanks for your advice.
yes, your 7-10 _Grid.jzml works very well.
so i took the script for light=
and put it in mine.
Doesn't work, i don't understand why ?

so there's my project. I tried your script on the yellow pad : colour is changing when starting the file, but it doesn't when the clip stops.
I verified that the note off message comes back from Live and it comes back , but the colour doesn't change.