XML Feeds

.

[javascript-dev] jit.buffer~

barry threw bthrew at gmail.com
Fri Nov 16 16:08:04 MST 2007


Hello friends,

I am trying to load a folder of samples into buffer, have been  
attempting it this way, and it hasn't been working...

I know its something simple...any help?

outlets = 0;
var buffers = new Array();

function read(foldername)
{
	var f = new Folder(foldername);
	var i;
	f.reset();
	for (i=0;i<f.count;i++) {
		if (f.filename) {
			var fullpath = f.pathname + f.filename;
			buffers[i] = new JitterObject("jit.buffer~");
			buffers[i].set(f.filename);
			buffers[i].replace(fullpath);
			i++;
		}
		f.next();	
	}
	f.close();
}

Thanks,

b

Barry Threw
Media Art and Technology


San Francisco, CA	Work: 857-544-3967
Email: bthrew at gmail.com
IM: captogreadmore (AIM)
http:/www.barrythrew.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/javascript-dev/attachments/20071116/c3e86247/attachment.htm


More information about the javascript-dev mailing list