Skip to content

xhacks/sndfile2fft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

sndfile2fft

This is a simple application I hacked together while testing USB Audio Interfaces.

It takes a wav file, runs an FFT (using FFTW), plots the output (using gnuplot), just some simple checks for glitches (expects sine waves)

Requirements

Building

Something like the following should do it..

gcc -lfftw3 sndfile2fft.c -lsndfile -std=gnu99 -o sndfile2fft

(A simple makefile is included)

Usage

sndfile2fft [-p]

Where the output file will contain a line for each freq bin. First column freq value, then column for each channel.

Adding the optional -p on the end will cause it to draw a plot with gnuplot.

Testing

Only tested on OSX and a few recorded wav files (some with injected errors).

TODO

  • Only for stereo really
  • Could do with command line options for the various options
  • Needs tidy up - Very hacky!
  • Check detected peaks dont move
  • Everything in the github issues list for this repo

About

Take a wav file an generates fft data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages