[SOLVED] Bug in Max4Live API tools

Learn about building and using Max for Live devices.
jeremydb
Posts: 64
Joined: Tue Jan 25, 2005 8:20 am
Location: Berlin
Contact:

Re: Bug in Max4Live API tools

Post by jeremydb » Mon Apr 04, 2011 11:12 am

jeremydb wrote:
lalo wrote:
jeremydb wrote:
The posts in the Max window indicate that the Max object which contains the "definition" of the JS LiveAPI Object couldn't be found or loaded somehow.

Can you please look in your Max application folder (usually at c:/program files/cycling '74/max 5.0/), inside the "Cycling '74/jsextensions" folder, and let me know if there is a file called "jsliveapi.mxe"? If not, could you please search your hard drive for this file and let me know where it is (if it is there)?

Thanks
Jeremy
hi jeremy,
yes i have the jsliveapi.mxe inside c:/program files/cycling '74/max 5.0/Cycling '74/jsextensions folder.

hope we get it solved soon :)

a.
OK, I think I know what the problem is -- jsliveapi was (probably) accidentally compiled in such a way that it requires Microsoft's .NET framework installed. I don't see the issue on my machine because it's installed as part of the development tools I use. I'm investigating and will post a link to a new build shortly, assuming that this is the problem.

jb
It turns out that this is not the problem, which is good for everyone, since we don't need to release new software to make this work, if you're experiencing the problem that lalo was having. If you are seeing similar issues and used to have Pluggo installed on your computer, do a search on your hard drive for the file "js32mt.dll". You probably have an old copy in windows/system32/ (while you're looking, make sure that maxapi.dll, maxaudio.dll, maxplug.dll and/or jitlib.dll are not lurking in windows/system32 as well -- this would only be the case if you had some old version of Pluggo installed).

If you do, remove it/them, restart Max/Live and everything should be up and running. The only copies you need for M4L are in Max 5.0/support.

Jeremy

TriangelKlang
Posts: 21
Joined: Fri Nov 20, 2009 11:45 am

Re: [SOLVED] Bug in Max4Live API tools

Post by TriangelKlang » Mon Apr 04, 2011 11:43 am

Hee Jeremy

Hurrah, Applause, You are the Man, Today

"Cycling '74/jsextensions" folder
there is a file called "jsliveapi.mxe"

Windows/system32
no maxapi.dll, maxaudio.dll, maxplug.dll and/or jitlib.dll here

but "js32mt.dll" is there

According your advice I deleted it.

Started up Ableton, loaded the M4L Api tools and no probs, You solved It

Grateful

Al the best, M._

jeremydb
Posts: 64
Joined: Tue Jan 25, 2005 8:20 am
Location: Berlin
Contact:

Re: [SOLVED] Bug in Max4Live API tools

Post by jeremydb » Mon Apr 04, 2011 2:16 pm

TriangelKlang wrote:Hee Jeremy

Hurrah, Applause, You are the Man, Today

"Cycling '74/jsextensions" folder
there is a file called "jsliveapi.mxe"

Windows/system32
no maxapi.dll, maxaudio.dll, maxplug.dll and/or jitlib.dll here

but "js32mt.dll" is there

According your advice I deleted it.

Started up Ableton, loaded the M4L Api tools and no probs, You solved It

Grateful

Al the best, M._
The Man for a day? I'll take it.

Glad this solved your problems.

jb

jeremydb
Posts: 64
Joined: Tue Jan 25, 2005 8:20 am
Location: Berlin
Contact:

Re: Bug in Max4Live API tools

Post by jeremydb » Mon Apr 04, 2011 6:12 pm

ShelLuser wrote:
jeremyb wrote:As for why we "resorted" to Javascript: the JS interface is ... more efficient -- changing the "Poletti Chooser" from a Max to a JS backend sped up device load time by something like 7x.
That is indeed interesting to know. Never knew about the speed enhancement, that is very good to know.
Before everyone starts learning Javascript, just because I said it's more efficient, I should probably expand a bit. The reason why the devices load so much quicker isn't an automatic consequence of using JS, but because, in this case, a single JS file could replace about 20 complex Max patchers which had to be loaded and initialized with each device. Since each of these Max patchers contained live.path, live.object and live.observer objects which required communication transactions with Live, it quickly added up to a whole lot of overhead. Reducing that overhead to a couple of reusable LiveAPI objects in a single .js file led to that significant speedup.

That said, learning Javascript is probably one of the best uses of your time, if you're interested in getting into
"text" programming.

Jeremy

willum070
Posts: 4
Joined: Thu Nov 05, 2009 2:38 am

Re: [SOLVED] Bug in Max4Live API tools

Post by willum070 » Thu Apr 07, 2011 8:25 am

Thanks, that solved it for me as well! Although my copy of "js32mt.dll" was not located in windows/system32, it had been installed as part of the Density (http://www.densitygs.com/). I uninstalled Density and everything works now.

So does this mean that third-party devs should be discouraged from distributing js32mt.dll, since Max already has it?

Also +1 on learning JavaScript. It was my first language, opened the door for C, C++, C#, Java, and many more. I use it most every day in my job. And now we can use it in Max for Live, how cool is that?!?!

jeremydb
Posts: 64
Joined: Tue Jan 25, 2005 8:20 am
Location: Berlin
Contact:

Re: [SOLVED] Bug in Max4Live API tools

Post by jeremydb » Thu Apr 07, 2011 8:54 am

willum070 wrote:Thanks, that solved it for me as well! Although my copy of "js32mt.dll" was not located in windows/system32, it had been installed as part of the Density (http://www.densitygs.com/). I uninstalled Density and everything works now.

So does this mean that third-party devs should be discouraged from distributing js32mt.dll, since Max already has it?

Also +1 on learning JavaScript. It was my first language, opened the door for C, C++, C#, Java, and many more. I use it most every day in my job. And now we can use it in Max for Live, how cool is that?!?!
Where did densitygs install the library?

willum070
Posts: 4
Joined: Thu Nov 05, 2009 2:38 am

Re: [SOLVED] Bug in Max4Live API tools

Post by willum070 » Thu Apr 07, 2011 4:22 pm

I believe it was C:\Program Files (x86)\Density\Support.

Post Reply