sounds good, so what would be an external with approach number 2? cheers
> On 07 Dec 2015, at 17:26, Jonathan Wilkes <[email protected]> wrote: > > It's not possible with Vanilla objects. > > There are three possible interfaces I've seen for an external that lists > files: > 1) linked-list style -- start at the beginning, send a "next" message to > output the next file in the directory, bang an ancillary outlet when > finished. (You can have more complex variations on this, like "rewind" to go > back to the head...) > 2) list style -- output a single list where each element is a file in the > directory. > 3) sequence -- output each file as a separate message, until there are no > files left to output. > > I'm not a fan of #1 as it almost always requires boilerplate (like [until] > and a wire connecting upwards). > > I also don't like #3 because it forces the user to eat the cost of sending > all those messages. For example, the user may just want to count how many > files there are. Also, it is a re-entrancy nightmare just waiting to happen. > > #2 is the most flexible. You can use it with [list-drip] to get #3 with very > little additional overhead. > > -Jonathan > > > > On Monday, December 7, 2015 4:27 AM, Simon Iten <[email protected]> wrote: > > > what would be an appropriate way to get all filenames out of a directory in > pd-vanilla? > > i have only seen very old posts about this, they all use pd-extended. is > there any recent object/external that does this? > it could be nice if openpanel could also open a directory and output all the > filenames... > > alternatively is there a way to just read all the files from a directory one > after the other? > > cheers > > > _______________________________________________ > [email protected] <mailto:[email protected]> mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > <http://lists.puredata.info/listinfo/pd-list> > >
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
