Play/stop Button in ableton

Discuss Lemur and share techniques.
Post Reply
simuschi
Newbie
Posts: 5
Joined: 13 Dec 2011 20:11

Play/stop Button in ableton

Post 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.
mbncp
Regular
Posts: 87
Joined: 08 Dec 2011 07:25

Re: Play/stop Button in ableton

Post 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
simuschi
Newbie
Posts: 5
Joined: 13 Dec 2011 20:11

Re: Play/stop Button in ableton

Post 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
simuschi
Newbie
Posts: 5
Joined: 13 Dec 2011 20:11

Re: Play/stop Button in ableton

Post 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.
mbncp
Regular
Posts: 87
Joined: 08 Dec 2011 07:25

Re: Play/stop Button in ableton

Post by mbncp »

Did you remove the MIDI assignment (Target = none) ?
simuschi
Newbie
Posts: 5
Joined: 13 Dec 2011 20:11

Re: Play/stop Button in ableton

Post by simuschi »

i just tried it. but that didn't seem to help.
simuschi
Newbie
Posts: 5
Joined: 13 Dec 2011 20:11

Re: Play/stop Button in ableton

Post 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
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Play/stop Button in ableton

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Bishbo2000
Newbie
Posts: 9
Joined: 16 Jan 2012 09:32

Re: Play/stop Button in ableton

Post by Bishbo2000 »

U bloody legend! thnx
Post Reply