This content originally appeared on DEV Community and was authored by Ben Santora
Check out this project on GitHub at:
https://github.com/bensatlantik/Rust.git
The github project is named 'fft-analyzer' - in the directory is an audio file named 'waves.wav' which is a recording of ocean waves. This type of audio source file is a rich source of diverse frequencies. You will need Rust installed - clone the repo, cd into fft-analyzer and type 'cargo run' - it should run the program and produce a .png of the FFT plot for the included .wav file.
Try your own audio files, but remember to change the code in src / main.rs and replace 'waves.wav' with the name of your .wav file. (Or rename your file to 'waves.wav' if you don't want to rewrite the code).
Ben Santora - October 2024
This content originally appeared on DEV Community and was authored by Ben Santora

Ben Santora | Sciencx (2024-10-27T19:31:53+00:00) Rust – FFT Plotter. Retrieved from https://www.scien.cx/2024/10/27/rust-fft-plotter/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.