[chuck-users] list of filenames of a directory

Kassen signal.automatique at gmail.com
Sun Jun 8 11:47:16 EDT 2008

2008/6/8 Renato Fabbri <renato.fabbri at gmail.com>:

> ow yeah! nice idea Kassen. That, with Std.system to execute the command
> line can make it all somehow self-contained. something like:
> // self-contained filenames chuck access
> Std.system("chuck my-engine:filename1:filename2:filename3...")
> which, when sporked, calls my-engine.ck with the filenames of a directory
> all accessible by me.arg
> clearly, "filename1:filename2:filename3" can be replaced by a related
> command line for the given OS.

Exactly. And one of the cool bits could be that OS's are quite good at
sorting file types which has advantages as you'll likely only be interested
in .ck, .wav and maybe .aiff files. It doesn't make much sense to try to
load a pdf in ChucK.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080608/f1959379/attachment.html>

More information about the chuck-users mailing list