readDir
part of wslib
an additional method to Buffer which can load all soundfiles in a specified folder to separate buffers at once
Buffer:readDir ( path, bufnumOffset, ext, server, notify, nlevels )
returns an array with all buffers
path : the path of the folder
bufnumOffset : the bufnum of the first buffer; readDir will count on from there for the following buffers.
** readDir will overwrite existing buffers if they are there **
ext : the filename extension for the soundfiles. readDir can only get one type of soundfiles at a time from a
folder. The default extenstion is "wav"
server : the Server on which the buffers will be loaded
notify : if true (default) eadDir will show all loaded buffers and their soundfile names in the post window
nlevels : number of levels to search inside the directory
b = Buffer.readDir( "sounds", 10, "aiff" );
b.do( _.play );