33 lines · 631 B · Text
RawDownload
// fft3.ck: yet another way to get FFT spectrum - without blobs// authors: Rebecca Fiebrink and Ge Wang // our patchSinOsc g => FFT fft => blackhole;// set sratesecond / samp => float srate; // set parameters8 => fft.size; // use this to hold contentscomplex s[fft.size()/2];// divideint div; // control loopwhile( true ){    // set freq    srate / fft.size() * div++ => g.freq;    fft.size()/2 %=> div;        // take fft    fft.upchuck();    // get contents    fft.spectrum( s );    // examine contents    <<< s[0]$polar, s[1]$polar, s[2]$polar, s[3]$polar >>>;     // advance time    100::ms => now;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t