//our new play program that uses a loop to fill our //files[] array with the paths //instantiate SmpPlay object SmpPlay salad; //declare a string array named "files" that has 67 slots string files[67]; //use the for loop //what the arguments mean //0 => int i; chuck 0 to an int variable named "i" for index //i < files.cap(); while i is less than the max number of slots in our array //i++ increment i (our index variable) by 1 for ( 0 => int i; i < files.cap(); i++ ) { //concatenate our path name with i (our index variable) and assign //the string to the corresponding array slot "../jrmy/samples/marimba/marimba" + i + ".wav" => files[i]; } //the rest is the same as before fun void proc() { while ( true ) { salad.play( files[Math.rand2(0, 66)] ); } } spork ~ proc(); while ( true ) { 1::second => now; }