[PD] [PD-announce] more objects from libc: stat - get file info

james tittle tigital at mac.com
Wed Jun 14 15:01:24 CEST 2006


On Jun 14, 2006, at 8:27 AM, chris clepper wrote:

> Is there a way to get a random file of a certain type (like .mov)  
> from a specific directory using your objects?

...why don't you use playlist from unauthorized?  It's included in pd- 
extended:  just remember that it's referenced as "unauthorized/ 
playlist"...so, you'd want to try something like:

[location /path/to/mov/directory<
|  [nmbr]
|  |
| [seek $1<
|/
[unauthorized/playlist mov 200 200]

...[seek < lets you cycle thru name list (with auto wraparound!), so  
just send a random number to it...

jamie




More information about the Pd-list mailing list