Git Product home page Git Product logo

aex's Introduction

1- Collect N_Samples Vector from sound card 2- Appli window function to N_Samples Vector (Hann aka Hanning window) 3- Set a ComplexVector ( Real = N_Samples , Img = 0) 4- Appli FFT(ComplexVector)

5- Set peak frequencies in the spectrum array for(j = 0; j <(N/2) ; j++){ magnitude = sqrt( ComplexVector[j].re^2+ ComplexVector[j].img^2); freq = j * SampleRate /N; for( i=0;i<BUCKETS;i++){ if( freq>=Freq_Bin[i] && freq<=Freq_Bin[i+1] ){ if (magnitude > Spectrum[i]){ Spectrum[i] = magnitude; } } } } Freq_Bin: is a distribution of audible frequencies

6- If you want appli Spectrum deformations f(x)

Spectrum[i]= f( Spectrum[i] )

Natural f(x)=x*Fit_factor

Exponential f(x)=log(x*Fit_factor2)*Fit_factor

Multi Peak Scale f(x,i)=x/Peak[i]*Fit_factor

Max Peak Scale f(x)=x/Global_Peak*Fit_factor

7- Render spectrum magnitudes (Spectrum[i])

aex's People

Contributors

neb0lle avatar

Watchers

 avatar

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.