Forums > MaxMSP

how to mix lists ??? very need help

October 26, 2007 | 7:12 pm

hi everyone!
as always we ask to forgive for terrible english )))
is urgently required help!
as possible obtain mixed 2 list alternately
for instance:
list 1: x x x x x x x
list 2: y y y y y y y
result list: x y x y x y x y x y x y
lenght of source lists is unknown !!!!

I tryed "zl" object, but nothing now helps (((

many thanks!!!!!!!!


October 26, 2007 | 8:01 pm

hi

try this

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 216 134 89 196617 mxj list.Multiplex;
#P newex 214 179 32 196617 print;
#P message 296 79 62 196617 a b c d e f g;
#P message 205 77 70 196617 1 2 3 4 5 6 7;
#P connect 3 0 2 0;
#P connect 1 0 3 1;
#P connect 0 0 3 0;
#P window clipboard copycount 4;

falk

Am 26.10.2007 um 21:12 schrieb outoff:

>
> hi everyone!
> as always we ask to forgive for terrible english )))
> is urgently required help!
> as possible obtain mixed 2 list alternately
> for instance:
> list 1: x x x x x x x
> list 2: y y y y y y y
> result list: x y x y x y x y x y x y
> lenght of source lists is unknown !!!!
>
> I tryed "zl" object, but nothing now helps (((
>
> many thanks!!!!!!!!


October 26, 2007 | 8:05 pm

check interleave

http://www.cnmat.berkeley.edu/MAX/downloads/
i think
m

On 26 Oct 2007, at 20:12, outoff wrote:

>
> hi everyone!
> as always we ask to forgive for terrible english )))
> is urgently required help!
> as possible obtain mixed 2 list alternately
> for instance:
> list 1: x x x x x x x
> list 2: y y y y y y y
> result list: x y x y x y x y x y x y
> lenght of source lists is unknown !!!!
>
> I tryed "zl" object, but nothing now helps (((
>
> many thanks!!!!!!!!

———————–
http://www.markfell.com
———————–


October 26, 2007 | 8:07 pm

ejies objects

ej.lop maybe..i cannot assure…

On Oct 26, 2007, at 9:12 PM, outoff wrote:

>
> hi everyone!
> as always we ask to forgive for terrible english )))
> is urgently required help!
> as possible obtain mixed 2 list alternately
> for instance:
> list 1: x x x x x x x
> list 2: y y y y y y y
> result list: x y x y x y x y x y x y
> lenght of source lists is unknown !!!!
>
> I tryed "zl" object, but nothing now helps (((
>
> many thanks!!!!!!!!
>



jln
October 26, 2007 | 8:07 pm


October 26, 2007 | 9:56 pm

thanks to all !!!
now i know many interesting about work with lists
)))))


October 30, 2007 | 10:18 am

Try Lmerge from the Lobjects.

Best,
Trond

> as possible obtain mixed 2 list alternately
> for instance:
> list 1: x x x x x x x
> list 2: y y y y y y y
> result list: x y x y x y x y x y x y
> lenght of source lists is unknown !!!!
>
> I tryed "zl" object, but nothing now helps (((


October 31, 2007 | 1:05 am

thank you!
now I completely ready to fight with lists)))))


November 29, 2007 | 12:59 pm

hmm,
I used for association long (more than 256) lists object "mxj list.Unique", but it has appeared later, that it throws out identical values! Somebody knows as it is possible to avoid it. While the decision is not found, it is necessary to use object "zl join", but lists are necessary to me, is long which exceeds 256 symbols! Prompt please how to be!?
thanks a lot!


November 29, 2007 | 2:00 pm

On 29 nov. 07, at 13:59, outoff wrote:

> hmm,
> I used for association long (more than 256) lists object "mxj
> list.Unique", but it has appeared later, that it throws out
> identical values! Somebody knows as it is possible to avoid it.
> While the decision is not found, it is necessary to use object "zl
> join", but lists are necessary to me, is long which exceeds 256
> symbols! Prompt please how to be!?

Could you post a patch which show what you’re trying to accomplish?

ej


November 30, 2007 | 8:41 am

outoff schrieb:
> While the decision is not found, it is necessary to use object "zl
> join", but lists are necessary to me, is long which exceeds 256
> symbols! Prompt please how to be!? thanks a lot!

mxj list.Join (of course)


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


November 30, 2007 | 4:45 pm

ohh! "mxj list.Join" object is not present in the list of "mxj list" objects! Certainly it should be! Perfectly! On a way it has appeared that "prepend" too cuts the list, but it was possible will get rid))

thank you!


November 30, 2007 | 6:09 pm

Quote: outoff wrote on Fri, 30 November 2007 08:45
—————————————————-
> ohh! "mxj list.Join" object is not present in the list of "mxj list" objects! Certainly it should be! Perfectly! On a way it has appeared that "prepend" too cuts the list, but it was possible will get rid))
>
> thank you!
—————————————————-

You can do this with mxj list.Queue, but it takes a little more effort.

mz


Viewing 13 posts - 1 through 13 (of 13 total)