Git Product home page Git Product logo

fourier-from-wav-file's Introduction

Fourier Transform from WAV file

The goal of this project was to learn a little about the fourier transform operation and how to implement it programatically. The project has two implementations regarding the Fourier Transform one that is derived from the following formula:

equation

and the other is an implmentation of the Fast Fourier Transform algorithm. The effiecency of the two algorithms is described as follows DFT => equation and FFT equation where n is the length of the input.

The input for this project I decided to be a .wav file. Provided a wav file the program parses the file extracting the necessary data and then converts it to a vector of complex double numbers. The FFT algorithm is designed in such a way that it can only run on data with a length that is a power of 2, so additional logic was added to pad the length of the data vector in the case that the data is not a power of 2.

Finally once the output vector is computed from the input vector I wrote a simple python program to graph the output on the x-y plane and one for magnitude-frequency. I realize that plotting the output on the Argand plane would be beter but it was outside the scope of the project. The graphs are presented once done and saved as png files in the project directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.