[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] array of GetFileDialogs



i think see how that would work in that case. thanks for the tip. out of curiosity, why would an array of GetFileDialog s work in SC2? thanks.
j
On Friday, January 2, 2004, at 04:19 AM, Julian Rohrhuber wrote:

oh. sorry - I assumed that GetFileDialog allows multiple file select.
Somewhere this was used, I can't remember where though.
you might want to try CocoaDialog and Cocoa class.


hmm. i think this parses each character in the path separately. I get a 'File '<char from path>' could not be opened' message for each character in the path. i don't see how to set the number of soundFiles with this function...
thanks
jeremy
On Thursday, January 1, 2004, at 04:12 AM, Julian Rohrhuber wrote:

 try :

 (
 GetFileDialog({ arg ok, paths;
 paths.asCollection.do({ arg path;
 s.sendMsg("/b_allocRead", 2, path.asString);
 })
 });
 )


I'm trying to load multiple files into memory with the following technique
 (
 GetFileDialog({ arg ok, path;
 s.sendMsg("/b_allocRead", 2, path.asString);
 });
 )

 (
 Synth.play({
 	var bufnum = 2;
 	PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum))
 });
 )

if i attempt to make an array : Array.fill(3, {GetFileDialog.new}) only one Open Dialog appears.
 help anyone?  thanks.

 happy new year,
 jeremy

 _______________________________________________
 sc-users mailing list
 sc-users@xxxxxxxxxxxxxxx
 http://www.create.ucsb.edu/mailman/listinfo/sc-users

 --







 .
 _______________________________________________
 sc-users mailing list
 sc-users@xxxxxxxxxxxxxxx
 http://www.create.ucsb.edu/mailman/listinfo/sc-users


_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users

--








.
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users