Home

Awesome

nausea

This is a simple audio spectrum visualizer. It works well with the mpd music player daemon, as well as anything that can play or record audio to stdout.

It was originally inspired by the visualizer screen of ncmpcpp. It depends on the fftw3 and curses libraries.

To visualize system audio, you must first make a fifo using mkfifo, and then use something like aplay or arecord to redirect audio into your fifo:

mkfifo /tmp/audio.fifo
aplay > /tmp/audio.fifo

You need to add the following to your mpd.conf. The format is important because it's the only one supported for now.

audio_output {
    type "fifo"
    name "Pipe"
    path "/tmp/audio.fifo"
    format "44100:16:2"
}

Then start the program with:

$ nausea

Alternatively specify the path of your mpd fifo with:

$ nausea <path-to-fifo>

To try it out with color support try:

$ xterm -bg black -fa "Monospace:pixelsize=12" -e ./nausea -c

Man Page

DESCRIPTION

The nausea program performs a discrete fourier transform and plots the spectrogram in real time using curses. It can also just display the audio waveform. The current implementation expects the input stream to be 44.1kHz, 16-bit little endian and 2 channels. The default fifo path is /tmp/audio.fifo.

Commandline options

FlagDescription
−hShow usage line.
−d numChoose a visualization using its number from below.
−cEnable color.
−pEnable falling peaks in the spectrum visualization.
−kKeep state in the fountain visualization.
−lGo left in the fountain visualization.
−bEnable bounce mode in the fountain visualization.

Active hotkeys while nausea is running

KeyAction
1Select the spectrum visualization.
2Select the wave visualization.
3Select the fountain visualization.
cToggle color.
pToggle falling peaks.
kToggle keep state.
lToggle direction.
bToggle bounce mode.
n or [Right]Cycle visualizations in ascending order.
N or [Left]Cycle visualizations in descending order.

Enjoy!