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
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
I'd like to see it, however:
http://www.ling.uni-potsdam.de/~moocow/projects/pd/readdir-0.01.tgz
"The requested URL /~moocow/projects/pd/readdir-0.01.tgz was not found on this server."
argh!
sorry about that -- I've uploaded it now.
I would like to put this and some other externals I've done into cvs, but I've been hemming and hawing about directory structure...
marmosets, Bryan
On 26 February 2004 at 18:41:25, Eric Skogen appears to have written:
I'd like to see it, however:
http://www.ling.uni-potsdam.de/~moocow/projects/pd/readdir-0.01.tgz
"The requested URL /~moocow/projects/pd/readdir-0.01.tgz was not found on this server."
Turns out that Yves' [playlist] object is just what we needed here. I think it's my new favorite toy!!!!
best, d.
yannick.dauby@free.fr wrote:
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...).