Forums > MaxMSP

inserting an element in a list at position n

Mar 30 2011 | 9:12 am

my case is even more simple (position is 2)

1/ I don’t see how to do it simply
2/ I am searching for a fast / efficient way to use it at low level

Thanks in advance

Mar 30 2011 | 9:39 am

Sorry, it’s completely wrong.

[zl nth] is more appropriate.

-- Pasted Max Patch, click to expand. --


Mar 30 2011 | 9:49 am

still wrong you are doing a replace
here a good one ( slice join join ) but too complex

-- Pasted Max Patch, click to expand. --

Mar 30 2011 | 11:25 am

from your I simplified mine
I don’t know what the most efficient one (depend on zl implementation)
but I’d like better (in term of CPU)


-- Pasted Max Patch, click to expand. --

Mar 30 2011 | 2:38 pm


next time I’ll read the first word of the post twice.

For the most efficient one, I don’t know, repeat 2000 times the operation (uzi) and compare cpu time (see cpuclock helpfile)


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

Forums > MaxMSP