Hey all, just started playing with the 'new' chuck...hmmm , fun:) now, i'm wondering, is it possible to get the contents of a directory (and loop thru all the file(name)s...)? i want to load a whole directory full of samples into an array of sndbuf's... thanks, regards -andreas
Not at the moment - chuck has a very minimal interface to the filesystem, although it's a great suggestion! I can't make any guarantees, but we'll add to the feature request list. you can make an array of strings to take care of the loading code, but that's not as flexible as what you're suggesting. andreas@smartelectronix.com wrote:
Hey all,
just started playing with the 'new' chuck...hmmm , fun:) now, i'm wondering, is it possible to get the contents of a directory (and loop thru all the file(name)s...)? i want to load a whole directory full of samples into an array of sndbuf's...
thanks, regards -andreas
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Ok, thanks! In the meantime, maybe i just use a php script (pointed to directory x) to generate the array of chuck-strings... cheers -andreas
Not at the moment - chuck has a very minimal interface to the filesystem, although it's a great suggestion! I can't make any guarantees, but we'll add to the feature request list.
you can make an array of strings to take care of the loading code, but that's not as flexible as what you're suggesting.
andreas@smartelectronix.com wrote:
Hey all,
just started playing with the 'new' chuck...hmmm , fun:) now, i'm wondering, is it possible to get the contents of a directory (and loop thru all the file(name)s...)? i want to load a whole directory full of samples into an array of sndbuf's...
thanks, regards -andreas
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On 4-Nov-05, at 2:05 AM, Philip Davidson wrote:
Not at the moment - chuck has a very minimal interface to the filesystem, although it's a great suggestion! I can't make any guarantees, but we'll add to the feature request list.
You could display a list of filenames on the console with std.system("ls *.wav"); but I can't figure out how to get that info back into chuck as a string (or anything). Cheers, - Graham
I have created a script which reads XML and generates ChucK code. I called it "ChucKML". Here's a simple ChucKML file: <chuckml> <wave src="wav/wave.wav" repeat_every="9::second"/> <wave src="wav/beat1.wav" start_after="3::second" repeat_every="3::second"/> <wave src="wav/beat2.wav" start_after="6::second" repeat_every="9::second"/> </chuckml> Reading your message, I added unix-like pattern matching to the filenames. Now you can do that: <chuckml> <wave src="wav/*.wav" repeat_every="3::second"/> </chuckml> Let me know if you have any other ideas that could be implemented into ChucKML! Nelson -- Nelson Ferraz GNU BIS - www.gnubis.com.br
You could try the following: 1. open to terminals: A and B. 2. type ./chuck --loop in terminal A 3. in terminal B type ./chuck --add first_file.ck <------ this file is needed so at least Shred 1 exists 4. then type the following in terminal B ( all in one line) find path_to_chuck_files -name "*.ck" | while read name; do sleep 10; ./chuck --replace 1 $name; done I admit this is a very dirty way to do it, but I guess you can play with it and think in more interactive way to do it. Maybe you can make a script and pass some variables like the sleep time and the directory and finally call it from within chuck with a call to the std.system( "string") chuck-function. just a suggestion.... Eduard On 4 Nov 2005, at 10:53, andreas@smartelectronix.com wrote:
Hey all,
just started playing with the 'new' chuck...hmmm , fun:) now, i'm wondering, is it possible to get the contents of a directory (and loop thru all the file(name)s...)? i want to load a whole directory full of samples into an array of sndbuf's...
thanks, regards -andreas
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Sorry for my previous post... just waken up, and didn't read the "sndbuf" bit. :-) On 4 Nov 2005, at 10:53, andreas@smartelectronix.com wrote:
Hey all,
just started playing with the 'new' chuck...hmmm , fun:) now, i'm wondering, is it possible to get the contents of a directory (and loop thru all the file(name)s...)? i want to load a whole directory full of samples into an array of sndbuf's...
thanks, regards -andreas
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi again, How can i set the audio output device chuck is using? and, is anyone using chucK on winXP with an rme Hammerfall? very crackly and glitchy for me when using it via windows-standard sound device.... couldnt find this anywhere in the doc.. thanks, -andreas
How can i set the audio output device chuck is using?
to see the list of audio I/O devices by device number: chuck --probe run chuck with the --dac<N> (and optionally also the --adc<N>) to set the output and input audio devices (replace <N> with the appropriate device number). For now, you will have to specify the flag everytime (unless you make the desired device the default). When we add the configuration features (like .chuckrc), we will be able to persist customized default settings. Best, Ge!
participants (6)
-
andreas@smartelectronix.com
-
eduard
-
Ge Wang
-
Graham Percival
-
Nelson Ferraz
-
Philip Davidson