unpack Order

Nebula's icon

Does the unpack object unpack the contents of a list in a specific order? IE, right to left? Is it simultaneous? I was just wondering if there is some slight inherent latency in the unpacking? Any ideas?

Emmanuel Jourdan's icon

It's "simultaneous from the right to left".

ej

On 13 déc. 08, at 16:30, Nathan wrote:

>
> Does the unpack object unpack the contents of a list in a specific
> order? IE, right to left? Is it simultaneous? I was just wondering
> if there is some slight inherent latency in the unpacking? Any ideas?

seejayjames's icon

AFAIK nothing in the computer world is truly simultaneous unless you have parallel processing or multiple CPUs. Most processing happens linearly, just super-fast. The unpack object, as well as pretty much all other objects, outputs right-to-left. Attach a [print] object to each outlet (with a different name for each) and you'll see the order in the Max window.

Also look into [trigger] which allows you to specify the order of your operations, which can be indispensable in certain situations. If you attach multiple [print] objects to the same outlet in the unpack example, they will come out based upon where the [print] objects are in the patch: right to left, then top to bottom. This can be a little weird at first, so if you want to specify order without worrying about where your objects have to be, use [trigger].

Dg's icon

No. Right to left, bottom to top.

Max Patch
Copy patch and select New From Clipboard in Max.

Zachary Seldess's icon

There are a slew of ways to form and reorder lists. When unpacking, one of the easiest ways to ensure you'll get elements outputing in the desired order is to first pass the list throug a zl object.

best,
Zachary

Max Patch
Copy patch and select New From Clipboard in Max.

seejayjames's icon

yes, bottom to top. oops.