[chuck-users] Get audio samples of adc (fernando alonso)

fernando alonso lualobus at gmail.com
Sat Jun 8 11:53:30 EDT 2013


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 <prc at cs.princeton.edu>:
> 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
Lualobus at gmail.com
http://roboticnaturalinteraction.com


More information about the chuck-users mailing list