Tutorial for writing custom control surface scripts?

Discuss music production with Ableton Live.
3dot...
Posts: 9996
Joined: Tue Feb 20, 2007 11:10 pm

Re:

Post by 3dot... » Wed Apr 22, 2009 3:07 pm

logic_user99 wrote:Ah, excellent! Thanks, Jorg - that's cleared it up a spell... ish. I guess I'll just have to have a play with it and see what happens.

Can anyone tell me what the below commands are for?

Bank1Button: -1
Bank2Button: -1
Bank3Button: -1
Bank4Button: -1
Bank5Button: -1
Bank6Button: -1
Bank7Button: -1
Bank8Button: -1
NextBankButton: -1
PrevBankButton: -1
LockButton: -1
it's to control a selected device (blue hand)...
Image

continuous
Posts: 1012
Joined: Sat Aug 06, 2005 7:11 pm
Location: PDX

Re: Tutorial for writing custom control surface scripts?

Post by continuous » Sat May 02, 2009 9:01 pm

I'm setting up an Instant Map for my X-Station.

Anybody know if you can control more than the first two sends of each track via Instant Map? Also, I guess tempo is not instant mappable?

cheers

Jekblad
Posts: 2353
Joined: Tue May 13, 2008 2:02 am
Contact:

Re: Tutorial for writing custom control surface scripts?

Post by Jekblad » Sat May 02, 2009 11:54 pm

keep this thread going...

i wish i could change the buttons under my faders on the remote zero to solo instead of mute.
2.4 ghz Macbook Pro 8gb RAM, SSD, Live 9 Suite, Puremagnetik, Minimal Talent

fishmonkey
Posts: 4479
Joined: Wed Oct 24, 2007 4:50 am

Re: Tutorial for writing custom control surface scripts?

Post by fishmonkey » Sun May 03, 2009 12:13 am

continuous wrote:I'm setting up an Instant Map for my X-Station.

Anybody know if you can control more than the first two sends of each track via Instant Map? Also, I guess tempo is not instant mappable?

cheers
you can only instant map the stuff that is in the user config template...

continuous
Posts: 1012
Joined: Sat Aug 06, 2005 7:11 pm
Location: PDX

Re: Tutorial for writing custom control surface scripts?

Post by continuous » Sun May 03, 2009 12:16 am

The Instant Mapping is a very cool feature but I do wonder why the Abe's keep it limited. What rational reason could there nbe not to allow control over more sends? :|

doc holiday
Posts: 1683
Joined: Thu Jan 24, 2008 1:49 am
Location: NOW

Re: Tutorial for writing custom control surface scripts?

Post by doc holiday » Sun May 03, 2009 12:19 am

does that custom map script properly map sends again?

continuous
Posts: 1012
Joined: Sat Aug 06, 2005 7:11 pm
Location: PDX

Re: Tutorial for writing custom control surface scripts?

Post by continuous » Sun May 03, 2009 12:50 am

Has there been a problem with it previously? I am pretty new to the Custom Instant Mapping. Just have mapped a couple sends and they seem fine?

doc holiday
Posts: 1683
Joined: Thu Jan 24, 2008 1:49 am
Location: NOW

Re: Tutorial for writing custom control surface scripts?

Post by doc holiday » Sun May 03, 2009 2:37 pm

i haven't messed with it for a while. but the same script would map the sends in (i think) 6.07 and that was the only version it ever worked in for me. I haven't tried mapping the sends since. back then no one could get them to work

continuous
Posts: 1012
Joined: Sat Aug 06, 2005 7:11 pm
Location: PDX

Re: Tutorial for writing custom control surface scripts?

Post by continuous » Sun May 03, 2009 4:54 pm

I'll let you know how they work when I set them up tonight. I was kinda holding out to see if anybody knew how to alter the usercofiguration.txt file to add more sends so that I didn't get it all set up and then have to change it.

The x-station's editor makes it pretty painless... just wish they would let us control more (sends, tempo, maybe session/arrangement view) if they're not going to provide a map in the prefs.

Kinda weird they wouldn't provide one for the x-station...

fishmonkey
Posts: 4479
Joined: Wed Oct 24, 2007 4:50 am

Re: Tutorial for writing custom control surface scripts?

Post by fishmonkey » Sun May 03, 2009 11:59 pm

can the x-station be programmed to send pitchbend messages using the sliders???

MrYellow
Posts: 1887
Joined: Mon Dec 15, 2003 7:10 am
Contact:

Re: Tutorial for writing custom control surface scripts?

Post by MrYellow » Mon May 04, 2009 4:36 am

Python based proper control surface scripts:

http://blogs.bl0rg.net/netzstaub/2008/0 ... e-scripts/

The text file method seems very limited in what can be done.

-Ben

continuous
Posts: 1012
Joined: Sat Aug 06, 2005 7:11 pm
Location: PDX

Re: Tutorial for writing custom control surface scripts?

Post by continuous » Mon May 04, 2009 5:32 am

fishmonkey wrote:can the x-station be programmed to send pitchbend messages using the sliders???
Not sure about that... still trying to sort out my basic setup. Anybody?
MrYellow wrote:Python based proper control surface scripts:

http://blogs.bl0rg.net/netzstaub/2008/0 ... e-scripts/

The text file method seems very limited in what can be done.

-Ben
Wow... thanks for posting up this info. I realize you are right, the userconfig.txt won't get me what I want but the Python is over my head! I'll try to take another look though.

I don't understand why they can't offer more control in the userconfig text. If you can offer control over 2 sends why not 4, 6 or 8? If I can control tempo with a bcr why not with the x-station? Pretty frustrating Abes!

MrYellow
Posts: 1887
Joined: Mon Dec 15, 2003 7:10 am
Contact:

Re: Tutorial for writing custom control surface scripts?

Post by MrYellow » Mon May 04, 2009 5:52 am

I've had no luck finding documentation from abes on the python control script API.
I believe the LiveAPI people documented it themselves though haven't dug though
their docs yet.

Says in that article that to learn the API he had to decompile (hack) the existing
compiled python scripts provided by abes.

Between his microkontrol and FBC1010 examples there is a good bit of un-compiled
raw script code to learn from. I'm a programmer so after learning 9-10 languages
another one is easy, um, not sure what is the best advice. Maybe starting with
some tutorial examples of python web scripts until you understand the syntax.

From there if you can construct the logic you should be able to copy paste some
syntax that will work. The hard part will be debugging as there is no external
debugging tool, live just crashes when you make a mistake no matter how small.
The link provides some methods for logging errors to text files so you can
debug from there.

First live learning project would be to take an existing script and tweak some
of it's functions and watch how the code changes effect live.

-Ben

continuous
Posts: 1012
Joined: Sat Aug 06, 2005 7:11 pm
Location: PDX

Re: Tutorial for writing custom control surface scripts?

Post by continuous » Mon May 04, 2009 6:05 am

I cannot enter that realm! :)

But ya... the only option will be to manually map the controls I want which of course stinks because I want to be able to use my controller with the hundred or so sketches I have done previously in Live. Thanks again for the info though Mr Yellow!

fishmonkey
Posts: 4479
Joined: Wed Oct 24, 2007 4:50 am

Re: Tutorial for writing custom control surface scripts?

Post by fishmonkey » Mon May 04, 2009 7:20 am

what kinda computer are you using?

Post Reply