Page 1 of 1

Help, making a flexible "function" in Max

Posted: 13 Mar 2012 15:21
by soerena
Hi


I want to be able to have the function object in the Lemur software talk with the function object in max.

I've succeeded in all the basic stuff, getting connection etc, and I've fooled around with many zl objects but now I'm pretty lost and could use some help.


It should be possible to have a changeable amount of points on the function object, and possibly an endless amount but around 100 would probably be enough (if a limit would make things much easier).

I found out that zl len can count the number of elements in my list, so now I've got how many points function should have, but it just seems to complex for me to actually make it work.


Help would be appreciated very much!

Re: Help, making a flexible "function" in Max

Posted: 14 Mar 2012 01:32
by Macciza
Hi
I presume you mean the Breakpoint object in Lemur . ..
It currently has a limit of 64 points,
It outputs 2 vectors - x is a vector of horizontal points, y is a vector of vertical points
Max's 'function' breakpoint editor sends out different info - an initial value and then a vector of value and delta position

Looks like a bit of scripting will be needed to work around this but it should not be too hard
Start small and get the basic concept working before working with larger lists

Cheers
MM

Re: Help, making a flexible "function" in Max

Posted: 14 Mar 2012 13:05
by soerena
Hi, thanks for the reply!

Yes, I mean the breakpoint object in Lemur.

Aah, I didn't know it already had a limit itself. So obviously there's no point in trying to make it infinite, hah. I guess this makes it quite a lot easier to patch.

Yeah the breakpoint sends out an index before the values, which is really cool, but I guess I need to find a way to index the points in function as well so the points in the breakpoint match the points in function. But it seems a bit triggy figuring out how to make it flexible so that I can choose the amount of points in function.

I think you're right about starting in the small first. Perhaps starting with 4 fixed points.

If you have an ideas as how to come closer this goal of mine, I'd appreciate your input very much.

/Søren