This is a simple audio frequency analyzer written in Java which uses the Fast Fourier Transform algorithm to filter the harmonics of a specified frequency from an input audio signal and compute its power spectrum. Here's a step-by-step description of what the program does:
- The program first samples an input signal, then computes its FT, its discretized frequencies and power spectrum.
- It then filters it by a specified frequency,
freq1
, and its first two harmonics,freq2
andfreq3
, in the frequency domain. - Next, the inverse FT is computed from the cleaned signal and used to produce an audio file.
- Finally, the plots for the input signal and computed power spectrum are outputted.
Here's an example of a signal the program would read:
The program will then output the corresponding power spectrum of that signal from its Fourier transform: