All times are UTC

 
 



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Live API question : JS vs. Python
PostPosted: Mon Jan 21, 2013 10:05 pm 

Joined: Mon Sep 06, 2004 5:26 pm
Posts: 54
Location: Virginia, USA
Hi folks,

Just looking for some clarification : In the Live API is it true that what is exposed in JavaScript are the same objects as those exposed in Python ?

I'm working on some customizations to the Launchpad in the python scripts. I just want to make sure I'm on the right page.

I've been working on a M4L device, but my impressions are that python scripts are faster.

_________________
HW : MacMini (OSX, 8GB),
HP Elitebook 8560w (W7 64-bit, 32GB RAM),

Various musical\non-musical MIDI controllers( Launchpad, etc.)

SW : Ableton Live 8.3.4 Suite (w/Live7 Suite, Live Lite8), M4L, Max6,
Komplete7, other VSTi's


Top
 Profile  
 
 Post subject: Re: Live API question : JS vs. Python
PostPosted: Tue Jan 22, 2013 12:40 am 

Joined: Sat Jan 24, 2009 8:16 pm
Posts: 430
Location: Arcata, CA
http://cycling74.com/forums/topic.php?id=23910

;)

a

edit::Sorry, I was pressed for time earlier. I guess my simple opinion is that "Yes, Python is much faster". Whatever you're going to do with the API in javascript is going to have to be handed over to Python anyway (and there is much involved there). But working in m4l also has it's strengths. I recommend using both, but doing as much as you can comfortably do in Python. Some processes just don't make much of a difference, and the prototyping time is going to be faster in js than in Python.

General rule: send as few calls to API objects as you can get by with, if efficiency is your goal. Python will deal with any API stuff natively faster than m4l will. If you need to call a process that is going to manipulate an array of API objects, write the method in Python, and initiate it from js using a single call.

_________________
http://www.aumhaa.com for Monomod and other m4l goodies.


Top
 Profile  
 
 Post subject: Re: Live API question : JS vs. Python
PostPosted: Wed Jan 23, 2013 2:34 am 

Joined: Mon Sep 06, 2004 5:26 pm
Posts: 54
Location: Virginia, USA
That's good info. I hope it gets lots of reads so others can benefit as well.

It's wonderful to get a concensus.

Thanks,
Glennzone

_________________
HW : MacMini (OSX, 8GB),
HP Elitebook 8560w (W7 64-bit, 32GB RAM),

Various musical\non-musical MIDI controllers( Launchpad, etc.)

SW : Ableton Live 8.3.4 Suite (w/Live7 Suite, Live Lite8), M4L, Max6,
Komplete7, other VSTi's


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

 
 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group