LiveAPI : new google group

Discuss music production with Ableton Live.
noisetonepause
Posts: 4938
Joined: Sat Dec 28, 2002 3:38 pm
Location: Sticks and stones

Post by noisetonepause » Sun Mar 09, 2008 3:29 pm

hoffman2k wrote:But I'm picking up max/msp/jitter/css/php
Why the fuck are you wasting your time on PHP? PHP is for idiots.

Python and Ruby can both generate web pages from databases if that's what you want to do. ANYTHING can. There's absolutely no reason to touch PHP, ever. There's certainly no reason to learn it.

Python's OK in that there's a lot of stuff you can do with it, I suppose, but PHP? Why?
Suit #1: I mean, have you got any insight as to why a bright boy like this would jeopardize the lives of millions?
Suit #2: No, sir, he says he does this sort of thing for fun.

noisetonepause
Posts: 4938
Joined: Sat Dec 28, 2002 3:38 pm
Location: Sticks and stones

Post by noisetonepause » Sun Mar 09, 2008 3:30 pm

Also, CSS is a horrible fucking nightmare. Don't play with CSS on bad days.
Suit #1: I mean, have you got any insight as to why a bright boy like this would jeopardize the lives of millions?
Suit #2: No, sir, he says he does this sort of thing for fun.

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Post by julienb » Sun Mar 09, 2008 3:31 pm

noisetonepause wrote: Why the fuck are you wasting your time on PHP? PHP is for idiots.
:lol: :lol: :lol:
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Post by hoffman2k » Sun Mar 09, 2008 3:33 pm

I still need it for my websites. I don't really care how to build sites. I just wonna know how I change blue to red. :)

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Post by hoffman2k » Sun Mar 09, 2008 3:35 pm

Btw Paws... You speak like you could have this hacked by dinner. Get cracking :D

Who the hell learns Persian anyway? You should learn Esperanto!

noisetonepause
Posts: 4938
Joined: Sat Dec 28, 2002 3:38 pm
Location: Sticks and stones

Post by noisetonepause » Sun Mar 09, 2008 3:42 pm

hoffman2k wrote:Btw Paws... You speak like you could have this hacked by dinner. Get cracking :D
Image

I've barely got time to play with the languages I like - I'll be fucked if I'm going to fiddle with Python...
Suit #1: I mean, have you got any insight as to why a bright boy like this would jeopardize the lives of millions?
Suit #2: No, sir, he says he does this sort of thing for fun.

frahnque
Posts: 266
Joined: Wed Mar 02, 2005 9:32 pm

Post by frahnque » Sun Mar 09, 2008 10:19 pm

noisetonepause wrote:
hoffman2k wrote:But I'm picking up max/msp/jitter/css/php
Why the fuck are you wasting your time on PHP? PHP is for idiots.

Python and Ruby can both generate web pages from databases if that's what you want to do. ANYTHING can. There's absolutely no reason to touch PHP, ever. There's certainly no reason to learn it.

Python's OK in that there's a lot of stuff you can do with it, I suppose, but PHP? Why?
While I couldn't say that PHP is for idiots, I could possibly say that I hate the way it looks and works. :)

I know some Python, but if this was all done in Ruby then I'd be over it in a second. And as noisetonepause says, go with Python or Ruby for web-stuff. You'll find how easy it is and then you'll never look back at PHP ever again. Plus, if you went with Python you'd have the possibility to fiddle with the Live API on Mac ;)
noisetonepause wrote: Also, CSS is a horrible fucking nightmare. Don't play with CSS on bad days.
Ehhh? And you recommend what instead? :)
Live 8.1 Suite + M4L and C'74 MAX5
Macbook Air 13", 4 Gb Ram - Lion
Thinkpad W510 Core i7 720-QM, 8 Gb Ram - Win7 64-bit

Soundcloud-> http://soundcloud.com/frank-bolero

mdk
Posts: 914
Joined: Sun Jul 31, 2005 3:51 pm
Location: Skopje, Macedonia
Contact:

Post by mdk » Sun Mar 09, 2008 10:20 pm

hoffman2k wrote:Robert Henke is running a macbook and his MonoDeck gets feedback from python.
The guy who does the MIDI scripts at Ableton programmed it.
So its definitely possible.
Yeah, i was thinking about this and its entirely possible that the python code he uses just works with midi data so it doesnt necessarily mean that what we want is actually possible, after all the monodeck II has just coloured leds, it doesnt have LCD displays with text in or anything like that.

its also worth mentioing that you *can* use the API on OSX right now, the problem is that you cant use certain libraries like the socket library which you would need for OSC and other means of communication.

anyway, i've started digging around on OSX, i'll post up anything I find as I go along.

First is the deafault system path :

/usr/local/lib/python2.2/
/usr/local/lib/python2.2/plat-darwin
/usr/local/lib/python2.2/lib-tk
/usr/local/lib/lib-dynload
<PATH TO MIDI Remote Scripts Dir>

Of course on a recent OSX there is no python in /usr/local/lib/python2.2

so my next move is to try an old version from MacPorts and see if that helps any.
Pr0k Records - Bandcamp Facebook Twitter

frahnque
Posts: 266
Joined: Wed Mar 02, 2005 9:32 pm

Post by frahnque » Sun Mar 09, 2008 10:24 pm

mdk wrote: First is the deafault system path :

/usr/local/lib/python2.2/
/usr/local/lib/python2.2/plat-darwin
/usr/local/lib/python2.2/lib-tk
/usr/local/lib/lib-dynload
<PATH TO MIDI Remote Scripts Dir>

Of course on a recent OSX there is no python in /usr/local/lib/python2.2

so my next move is to try an old version from MacPorts and see if that helps any.
There seems to be some error in the ports repo:

$> sudo port install python22
Password:
---> Fetching python22
---> Attempting to fetch Python-2.2.3.tgz from ftp://ftp.python.org/pub/python/2.2.3/
---> Attempting to fetch Python-2.2.3.tgz from http://svn.macports.org/repository/macp ... s/python22
---> Attempting to fetch Python-2.2.3.tgz from http://svn.macports.org/repository/macp ... s/general/
---> Attempting to fetch Python-2.2.3.tgz from http://svn.macports.org/repository/macp ... s/python22
Error: Target org.macports.fetch returned: fetch failed
Error: Status 1 encountered during processing.

---------------

grrrrrrr!
Live 8.1 Suite + M4L and C'74 MAX5
Macbook Air 13", 4 Gb Ram - Lion
Thinkpad W510 Core i7 720-QM, 8 Gb Ram - Win7 64-bit

Soundcloud-> http://soundcloud.com/frank-bolero

noisetonepause
Posts: 4938
Joined: Sat Dec 28, 2002 3:38 pm
Location: Sticks and stones

Post by noisetonepause » Sun Mar 09, 2008 10:25 pm

frahnque wrote:Ehhh? And you recommend what instead? :)
Well, there isn't really an alternative, is there? That doesn't change the fact that it's annoying.
Suit #1: I mean, have you got any insight as to why a bright boy like this would jeopardize the lives of millions?
Suit #2: No, sir, he says he does this sort of thing for fun.

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Post by hoffman2k » Sun Mar 09, 2008 10:25 pm

mdk wrote:
hoffman2k wrote:Robert Henke is running a macbook and his MonoDeck gets feedback from python.
The guy who does the MIDI scripts at Ableton programmed it.
So its definitely possible.
Yeah, i was thinking about this and its entirely possible that the python code he uses just works with midi data so it doesnt necessarily mean that what we want is actually possible, after all the monodeck II has just coloured leds, it doesnt have LCD displays with text in or anything like that.
The LED's are powered by MIDI. Live sends out different velocity messages to make those blink. Originally implemented for Richie Hawtin, then used by Monolake.

I'm not sure to the extent of what is possible here, but could python scripts be used to extend that functionality? Here's a quote from on of my feature requests:
hoffman2k wrote:If you assign a MIDI note to a clip, then the clip is capable of sending out 4 different velocity messages:

0 = Clip stopped
1 = Clip repeat
126 = Clip Triggered
127 = Clip started

I propose 2 additional messages:

2 = Slot contains Clip
3 = Slot does not contain Clip

These values would be sent out when you load a Live set or when you add/remove a Clip from a Clip Slot.

This way all Live users could get the same functionality that Monolake has with the Clip Trigger Grid on the Monodeck 2. Without having to resort to having to hack the API with python.

jonny72
Posts: 790
Joined: Thu Sep 27, 2007 2:43 pm

Post by jonny72 » Mon Mar 10, 2008 2:06 am

frahnque wrote:While I couldn't say that PHP is for idiots, I could possibly say that I hate the way it looks and works. :)

I know some Python, but if this was all done in Ruby then I'd be over it in a second. And as noisetonepause says, go with Python or Ruby for web-stuff. You'll find how easy it is and then you'll never look back at PHP ever again. Plus, if you went with Python you'd have the possibility to fiddle with the Live API on Mac ;)
I've been teaching myself Java but decided to have a play with Ruby / Rails the other day. Must admit I was totally blown away by how quick and simple all the complicated stuff is - database access for example. I've always hated PHP though, its for script kiddies only in my book.

frahnque
Posts: 266
Joined: Wed Mar 02, 2005 9:32 pm

Post by frahnque » Mon Mar 10, 2008 5:51 am

jonny72 wrote:
frahnque wrote:While I couldn't say that PHP is for idiots, I could possibly say that I hate the way it looks and works. :)

I know some Python, but if this was all done in Ruby then I'd be over it in a second. And as noisetonepause says, go with Python or Ruby for web-stuff. You'll find how easy it is and then you'll never look back at PHP ever again. Plus, if you went with Python you'd have the possibility to fiddle with the Live API on Mac ;)
I've been teaching myself Java but decided to have a play with Ruby / Rails the other day. Must admit I was totally blown away by how quick and simple all the complicated stuff is - database access for example. I've always hated PHP though, its for script kiddies only in my book.
And, if you leave the Rails domain (which includes too much magic in my opinion) and go over to the Ramaze camp (www.ramaze.net) you will live a happy life, angels wil sing and all wars will end! Well, not really, but Ramaze just 100 times more nicer, 1000 times less fat and speaks Ruby, not magic :)
Live 8.1 Suite + M4L and C'74 MAX5
Macbook Air 13", 4 Gb Ram - Lion
Thinkpad W510 Core i7 720-QM, 8 Gb Ram - Win7 64-bit

Soundcloud-> http://soundcloud.com/frank-bolero

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Post by julienb » Mon Mar 10, 2008 11:02 am

hoffman2k wrote:If you assign a MIDI note to a clip, then the clip is capable of sending out 4 different velocity messages:

0 = Clip stopped
1 = Clip repeat
126 = Clip Triggered
127 = Clip started

I propose 2 additional messages:

2 = Slot contains Clip
3 = Slot does not contain Clip

These values would be sent out when you load a Live set or when you add/remove a Clip from a Clip Slot.

This way all Live users could get the same functionality that Monolake has with the Clip Trigger Grid on the Monodeck 2. Without having to resort to having to hack the API with python.
I agree...!
But, I'm afraid that it would be a Feature to ask to Feature Wishlist forum ... wouldn't be?

I have another question/idea:
is it possible to create a script (*.py) to give all the possibilities given by LiveAPI (clip or not in a slot, type of clip why not, looped clip or not) and to provide it for max, for other hardware etc?

for the moment, I don't know how it goes..but I'm interested
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

mdk
Posts: 914
Joined: Sun Jul 31, 2005 3:51 pm
Location: Skopje, Macedonia
Contact:

Post by mdk » Mon Mar 10, 2008 11:18 am

hoffman2k wrote: 2 = Slot contains Clip
3 = Slot does not contain Clip

These values would be sent out when you load a Live set or when you add/remove a Clip from a Clip Slot.

This way all Live users could get the same functionality that Monolake has with the Clip Trigger Grid on the Monodeck 2. Without having to resort to having to hack the API with python.
Im 99% sure thats possible on both osx and pc. I'll have a go at something later today and let you know how I get on.
Pr0k Records - Bandcamp Facebook Twitter

Post Reply