DEV Community

Ben Santora
Ben Santora

Posted on

Rust - FFT Plotter

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.

Image description

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

Top comments (0)