Debian Codegraph @

examples/ai/features/flux.ck

raw
1 // our UGen/UAna patch
2 adc => FFT fft =^ Flux flux => blackhole;
3
4 // set fft size
5 1024 => fft.size;
6 // set window (optional here)
7 Windowing.hann( 1024 ) => fft.window;
8
9 // infinite time loop
10 while( true )
11 {
12 // propogate the analysis computations
13 flux.upchuck();
14 // print it (should always be 0)
15 <<< flux.fval(0) >>>;
16
17 // hop along
18 512::samp => now;
19 }