morning Yannick,
on linux, you can do this (and more) with the [shell] object from ggee:
[ls( | [shell] | [print file]
should print the contents of the current directory.
<plug> ... as it turns out, I made a random-file-from-directory patch a while back, and in the course of it wrote a directory-reader object, available at:
http://www.ling.uni-potsdam.de/~moocow/projects/pd/readdir-0.01.tgz
</plug>
my random-file patch also uses a bunch of other externals, and has been known to cause clicks in the audio stream, but if you're interested, I can send it to you...
marmosets, Bryan
On 26 February 2004 at 11:38:11, yannick.dauby@free.fr appears to have written:
hi list !
i am just starting pd/linux... (and very excited about it!) i am currently writing during a workshop runned by the friendly karosta sound explorer, derek holzer...
now, i have a question for you :
i need to grab randomly an audiofile name from a directory, which is supposed to be updated frequently. i was used to make such things in max/msp with the combination of folder and menu objects. is there a way to do that inside pd ? derek proposed me to make a script into the linux os, but i am wondering if anybody developped an object that could be easier for me to use (i am totally unfamiliar with linux tricks...).
friendly,
yannick dauby
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list