Filling message boxs with lists? How to?
Hi there, ive set up a little program that basically gives out a list of numbers derived from a sieve, so 3 to the base 2 gives me 2, 5, 8, 11, 14, 17, 20, 23 and so on.
I then use the zl group object to make sets of how ever long I want so say 'zl group 4' will output 2 lists from the above numbers in the max window when I use the print command so the first list/set would be 2, 5, 8, 11 then 14, 17, 20, 23.
My question is how would I get those numbers into each of there own separate message boxes? So that when the zl group outputs its first group of numbers it fills one message box, then when it outputs the other list it fills another box.
So in the end I have this program that basically can create different size lists/sets of numbers from sieves and have those sets automatically stored in message boxes in the max window to be used later.
One reason why I would like this is so I can then get my groups that are in the messages box and perform unions and intersections with these boxes, with other message boxes containing other lists/sets from another different sieve, say 4 base 3 or something.
Also, I cannot find a way to get a group of numbers coming from the zl group object to become an index in the coll object, so I am hoping that being able to put them into message boxes first will help me to put them into coll.
Thanks for you time!
Mark.
Ok maybe that was really confusing..
Really what I want to know is, am I able to get lists that are printed to the MAX window, put into a message box in the live patch. For you then to click on?
Can I fill a message box with a list?
On Feb 9, 2009, at 1:46 PM, mcozire wrote:
> Can I fill a message box with a list?
Yes.
You would probably get better quality help if you posted your patch,
with comments explaining what you expect to happen and where it's
going wrong.
- C
Chris Muir
cbm@well.com
http://www.xfade.com
the prepend object adds its argument to the beginning of the message it recieves so if u make an object 'prepend set' then it will add set to the beginning of the list. set will allow it to be sent to a message box
hope that helps
On Feb 9, 2009, at 1:46 PM, mcozire wrote:
> Ok maybe that was really confusing..
Rereading your initial post, maybe the thing that you're asking is how
to distribute lists to different destinations?
Chris Muir
cbm@well.com
http://www.xfade.com
How?
Sorry didnt see the second bit of your post
"Rereading your initial post, maybe the thing that you're asking is how
to distribute lists to different destinations?"
Yea thats pretty much it... whats happening is that ive got this thing now that is out putting several lists and it is printing them to the max window at the moment.
What id love to do is fill say 8 different message boxes with the 8 lists that are going to the max window at the moment..
Thanks again.
The patch I included a couple messages back could be extended to deal with an arbitrary number of output lists.
- C
Hey!
Sorry I dont have max 5, could In get a 4 version of the patch?
Thanks.
Quote: mcozire wrote on Tue, 10 February 2009 02:49
----------------------------------------------------
> Sorry I dont have max 5, could In get a 4 version of the patch?
----------------------------------------------------
I don't have Max4 on this computer.
It should be easy to re-create with this picture of the patch:
[img]index.php?t=getfile&id=2457&private=0[/img]
Thanks a million!
Ive come across something like this before. I have a long list, or a stream of shorter lists and I want to chop it up and send each output somewhere different. I either used the [counter] plus [gate] method or a [zl group] and multiple [zl slice]s in series. However I've found that Emmanuel Jourdan's javacript ej.cycle can help. It works like the standard [cycle] object except it leaves messages and lists intact. Check it out here:
lh