diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-12-11 03:46:54 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-12-19 19:38:32 +0300 |
commit | 0320d0b02530fb33eb15508bc3620221f814b11f (patch) | |
tree | 64da5424917f6b106c83682da7cf7320f9e329f9 /examples/fft.lua | |
parent | 98d7cc394f060c6935664c517c2e923c5d45350b (diff) | |
download | applause2-0320d0b02530fb33eb15508bc3620221f814b11f.tar.gz |
added FFT Jupyter notebook
* This still refers to a wave file that shouldn't be checked in.
Diffstat (limited to 'examples/fft.lua')
-rw-r--r-- | examples/fft.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/fft.lua b/examples/fft.lua index 85d0bc2..417f3c6 100644 --- a/examples/fft.lua +++ b/examples/fft.lua @@ -28,7 +28,7 @@ end):IFFT(1024):play() noisy = Stream.SinOsc(440):mix(NoiseStream, 0.4) tostream(magnitude(FFT(Hamming(noisy:sub(1, 1024))))):mul(0.05):gnuplot() --- Naive noise canceling +-- Naive noise cancelling noisy:FFT(1024, Hamming):map(function(spectrum) assert(#spectrum == 513) for i = 1, #spectrum do |