A small utility program in Python (pygame + numpy) to visualize the fourier transformation, executed in browser using pyodide.
The left side shows a list of float values.
The right side shows the resulting spectrum after a fourier transformation.
To change the spectrum just click on it and move the cursor around. Left click will set the real part, right click the imaginary part.
There are also some predefined spectrums that can be set by pressing the following keys:
s
, c
: Create a sin()/cos()-function on the left side. Pressing it again will incease the frequency. Pressing Shift+s reduces the frequency.0
: Set all samples to zero.+
, -
: Increase/decrease the number of samples.i
: Toggle rendering the imaginary part of the samples.