Page 1 of 1

Play/stop Button in ableton

Posted: 14 Jan 2012 12:07
by simuschi
Hello.
how do I map one button/switch on the lemur to control both play and stop in ableton? Each time the button is on i want ableton to play and each time its off i want ableton to stop playback. but i cant really figure out how to both control start and stop on the same button.

Re: Play/stop Button in ableton

Posted: 16 Jan 2012 20:02
by mbncp
I think you can do it with custom midi but I just used a script for that:

Use a custom button, set to switch behavior
add a script, call it OnChange or whatever, select On Expression for the trigger

Code: Select all

 ctlout(0,30+x,127,1);
will send a cc31 if the button is down and cc30 when up

Re: Play/stop Button in ableton

Posted: 16 Jan 2012 22:43
by simuschi
hmmm, it doesn't seem to work. when i try midimap the button in ableton this message appear: The selected controller conflicts with the previous mapping to transport start. Do you want to replace the previous mapping?
Im quite new to all this scripting so perhaps i did something wrong

Re: Play/stop Button in ableton

Posted: 16 Jan 2012 22:54
by simuschi
i tried to upload a jzlib file with the button but it seems like my computer won't let me for some reason. perhaps its attached here.

Re: Play/stop Button in ableton

Posted: 16 Jan 2012 23:50
by mbncp
Did you remove the MIDI assignment (Target = none) ?

Re: Play/stop Button in ableton

Posted: 16 Jan 2012 23:59
by simuschi
i just tried it. but that didn't seem to help.

Re: Play/stop Button in ableton

Posted: 17 Jan 2012 00:12
by simuschi
here's how it looks. for some reason i can't upload it here on the forum
http://speedy.sh/eMBHs/StartStop-button.jzlib

Re: Play/stop Button in ableton

Posted: 17 Jan 2012 00:50
by Macciza
Hi
To upload to forum -first compress the file - zip or similar . .

For the Button issue - the 30 to 31 in the controller section is for arrays of buttons
You need to either remove MIDI assign here or just deselect 'x' variable in Project pane.

Your OnChange script needs to know what is triggering it - put x in field next to execution 'On Expression' . . .x
Currently there is nothing telling it when to act . . .

Cheers
MM

Re: Play/stop Button in ableton

Posted: 24 Jan 2012 00:43
by Bishbo2000
U bloody legend! thnx