Skip to content

Instantly share code, notes, and snippets.

@maxwellre
Last active March 10, 2016 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxwellre/43e35c6229dd4fcbbbdc to your computer and use it in GitHub Desktop.
Save maxwellre/43e35c6229dd4fcbbbdc to your computer and use it in GitHub Desktop.
Compute the DFT of the entire file and then identify the index of the most prominent peak in its magnitude spectrum. The audio files are encoded with a sampling rate of 44100 Hz -- what frequencies (in Hz) correspond to the bins with the most prominent peaks?
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment