Thanks so much!!! I did not know the input.last() over Gain. Other user said me that it is possible adc.last() as well.
2013/6/7 Perry Cook <[email protected]>: > adc => Gain input => blackhole; > > 4096 => int SIZE; > int myArray[SIZE]; > > while (true) { > for (0 => int i; i < SIZE; i++) { > 32768 * input.last() $ int => myArray[i]; // make floats into ints > 1.0 :: samp => now; // do this each sample > } > // do useful things to your array, or spork a function to do that > } -- Fernando Alonso MartÃn [email protected] http://roboticnaturalinteraction.com _______________________________________________ chuck-users mailing list [email protected] https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
