[chuck-users] input from file?
francis keyes
fkeymo at gmail.com
Fri Nov 2 15:41:37 EDT 2007
This may be a silly question but is it possible to read data into a chuck
program from a file?
Given the code below for example, would it be possible to store the
parameters for the Std.rand2f function in a text file and have chuck read
them from the file on every loop?
// make our patch
SinOsc s => dac;
// time-loop, in which the osc's frequency is changed every 100 ms
while( true ) {
1000::ms => now;
Std.rand2f(30.0, 1000.0) => s.freq;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20071102/1ca69fc2/attachment.htm
More information about the chuck-users
mailing list