ascent12 / visualiser

An OpenGL audio frequency visualiser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A visualiser for audio using OpenGL.

screenshot

Note: this is not high-quality code intended for other people to use. It was mainly written as a learning experience for audio programming and OpenGL. I might improve it in the future, but for the time being, it remains as a hack-job.

Dependencies:

  • GLFW
  • FFTW
  • ALSA

Usage:

Compile with

make

Run with

./main some_file.wav

Controls:

  • ESC: Quit
  • Up: Scale +10%
  • Down: Scale -10%
  • Left: Double FFT size
  • Right: Half FFT size
  • L: Switch between Logarithmic/Linear views (Default: Logarithmic)

FFT size:

The FFT size has a direct impact on the horizontal resolution of the output, and how long a signal will stay on the display.
Setting the FFT size to be too large will have strange results, where the audio signals stay on the screen for far too long.
Setting the FFT too low will also have strange results, with the audio signals appearing 'jittery'.
Staying reasonably close to the default value has the best results.

About

An OpenGL audio frequency visualiser

License:GNU General Public License v3.0


Languages

Language:C 97.9%Language:Makefile 1.6%Language:Shell 0.5%