lemurloader for max

Discuss Lemur and share techniques.
Post Reply
lucasparis
Newbie
Posts: 30
Joined: 23 Dec 2011 20:15

lemurloader for max

Post by lucasparis »

So I've been trying to get lemurloader to work with max. Here's my goal: I'm building a modular system in max, I have subpatches loading dynamically, basicaly I have slots and I can load different things into the slot (samplers, synths.. etc), I want to have a jzlib container with an interface for each of the type of slots. What I've been trying to do is load my jzlib container into another named container that exist in the interface. This so far works.
the problem is when I want to load another jzlib and destroy the older one. I tried looking at the mu interface to figure this out and found the destroy command but this is not documented anywhere, it's part of those obscure liine programmer things^^
So any tips welcomed!
xanadu
Newbie
Posts: 11
Joined: 08 Jan 2012 16:04

Re: lemurloader for max

Post by xanadu »

This code defines an OSC script ClearContainer that will clear a container.

Code: Select all

// Syntax MaxMSP: /ClearContainer [ParentPath.]ContainerName

decl root = findobject(OSC_ARGS[0]);

decl obj = getfirst(root);
while (obj)
{
		decl next = getnext(obj);
		destroyobject(obj);
		obj = next;
}
oscout(0, '/ClearContainer', { 'ready' });
Also look at the topic 'Undocumented Functions' on this forum.

Cheers,

Xanadu
lucasparis
Newbie
Posts: 30
Joined: 23 Dec 2011 20:15

Re: lemurloader for max

Post by lucasparis »

thanks for that!
will check out that thread also
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: lemurloader for max

Post by Macciza »

Hi

Ofcourse if all you want to do is destroy the actual container and contents then

destroyobject(ContainerName) is all you need do ...
then import your new jzlib container into your existing host container . . .

Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Post Reply