Forums > MaxMSP

'Folder' order of operations

Jan 18 2009 | 7:14 am

Sorry if this one has been mentioned before, or if its a legacy thing I’ve never noticed. The folder object’s left outlet fires before the right one.

Has this always been the case? I have a patching situation where it would be preferable to receive the number of files in the folder before the contents are dumped out.

— Pasted Max Patch, click to expand. —
Jan 18 2009 | 12:52 pm

Yep, always been like that, as long as there’s been two outlets.

Consider that the object may not even know how many files there are until it’s iterated through the lot.

Jan 18 2009 | 5:55 pm

Good to know. I solved the problem by having folder input all of the filenames into a coll, and then once the total is output sending a dump message to the coll.

Jan 22 2009 | 11:08 pm

Jan 22 2009 | 11:29 pm

On Jan 22, 2009, at 3:08 PM, Stefan Tiedje wrote:

> with a simple trigger and an int you wouldn’t need a coll:

A simple trigger and int manage to recreate the output of folder
perfectly. :-)

That wasn’t what the original poster was after, though. The coll
solution mentioned earlier might be the best approach, but it could
also be approached with cascaded folder objects.

— Pasted Max Patch, click to expand. —

Chris Muir

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

Forums > MaxMSP