How to compile sndpeek on Ubuntu GNU/Linux

10 Jul

sndpeek is a very nice cross-platform real-time sound analysis and visualization utility. Unfortunately the latest version (1.3 as of this writing) is not available from official Ubuntu repositories, so I could not install it quickly on my Ubuntu GNU/Linux 11.04 running laptop for my sound processing experiments. And compiling it from the source turned out to be rather tricky. Thus, for all the poor souls struggling out there, here’s how I solved it:

  • According to this e-mail message you should put #include <cstdlib> into marsyas/LPC.cpp
  • According to this e-mail you should put #include <cstdio> to the beginning of RtAudio.cpp.
  • You should not forget to use the recommended libsndfile. And as stated it in its FAQ, once you downloaded, extracted, and did the usual ./configure; make; make install, you should export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig on the command line.
  • In my case I also had to install a couple of missing libraries, so just in case: sudo aptitude install libxmu-dev libglut3-dev libxi-dev

After the steps above you can make linux-alsa (or linux-oss, or linux-jack, depending on your system’s sound configuration). If you’re lucky enough you’ll have your sndpeek executable in the same directory. Run it by typing ./sndpeek, turn on the radio and watch the beautiful visualizations as well as important parameters as they are updated in real-time:

sndpeek on Ubuntu GNU/Linux - analysing sound wave from in real-time

sndpeek on Ubuntu GNU/Linux - analysing sound wave from in real-time

As a finishing touch, here are a few cool things you can do using sndpeek:


Posted by on July 10, 2011 in Linux



4 responses to “How to compile sndpeek on Ubuntu GNU/Linux

  1. gokhan

    July 11, 2011 at 11:43

    Did you try baudline?

  2. Emre Sevinc

    July 11, 2011 at 16:28

    Not yet but I’m aware of that software, too. It was just that I wanted to see sndpeek in action (and those fantastic IBM articles, e.g. using sndpeek for speaker identification, command control by whistle, etc. made me very curious 😉

  3. Luiz

    March 5, 2014 at 20:18

    Thanks for your tutorial. Works fine for me.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: