Skip to content

Instantly share code, notes, and snippets.

@corbanbrook
Created November 18, 2009 00:25
Show Gist options
  • Save corbanbrook/237422 to your computer and use it in GitHub Desktop.
Save corbanbrook/237422 to your computer and use it in GitHub Desktop.
zetagun:~ corban$ ruby DFT.rb 200 square 1720Hz
user system total real
DFT: 0.050000 0.000000 0.050000 ( 0.055424)
[DFT] 1720Hz squarewave / 44100.0Hz samplerate / 200 sample timesize
. - 0.6
.
. - 0.5
.
. - 0.4
.
.. . - 0.2
.. .
..... .... . .. . - 0.1
..... .... . .. .
----------------------------------------------------------------------------------------------------- 0.0
^ * ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
0kHz 22kHz 44kHz 66kHz 88kHz 110kHz 132kHz 154kHz 176kHz 198kHz 221kHz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment