35 lines · 606 B · Text
RawDownload
// our patchSinOsc g => FFT fft => blackhole;// synthesisIFFT ifft => dac;// set sratesecond / samp => float srate; // set parameters1024 => fft.size;// windowWindowing.hamming(512) => fft.window;Windowing.hamming(512) => ifft.window; // 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 );    // take ifft    ifft.transform( s );     // advance time    256::samp => 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