Music Analyser

I initially wrote this tool using GTK1 some years ago. Now I ported it to GTK2 and decided to put it online. It is basically a tool for displaying a spectrogram of an audio file. But rather than displaying a standard fft spectrogram, it uses a logarithmic spectrogram with a frequency dependent window size. This gives a piano-roll like view of the audio data. As I recently learned, this is called a Constant Q transform. Besides displaying this spectrogram it is possible to export it as a PNG file and when moving with the mouse around, the corresponding note name and beat position is displayed in the statusbar.


Download the source tarball[an error occurred while processing this directive] and the diff file.
[an error occurred while processing this directive]wget
Unpack the tarball:
tar xvzf musicanalyser_0.2.tar.gz
[an error occurred while processing this directive]Patch the directory:
cd musicanalyser-0.2.orig
zcat ../(none) | patch -p1
Build it:
[an error occurred while processing this directive]cd musicanalyser-0.2
[an error occurred while processing this directive]./
[an error occurred while processing this directive]./configure
sudo make install

Debian/Ubuntu package:

Prebuilt deb packages are available through my repository. Which you can add to your /etc/apt/sources.list or your favorite package manager with the following line:
deb gutsy/
for access to the source packages:
deb-src gutsy/
(The current build is depending on a libpango1.0-0 (maybe also other packages) that is available through the gutsy-proposed repository:
deb gutsy-proposed main
After adding the repository you have to update your package list either by using your favorite package manager or by the following command:
sudo apt-get update
And then you can install musicanalyser with:
sudo apt-get install musicanalyser
Note: These packages were built on a current version of Ubuntu Gutsy. So if you have an older version of Ubuntu you will probably have to built the packages yourself using the sources above, because you will probably not meet the package requirements. Here is how you can do that after adding the deb-src line above to your /etc/apt/sources.list
sudo apt-get build-dep musicanalyser
apt-get source musicanalyser
cd musicanalyser-0.2
[an error occurred while processing this directive]./
dpkg-buildpackage -rfakeroot -b -uc -us
[an error occurred while processing this directive]And install it using dpkg:
sudo dpkg -i musicanalyser_0.2.deb


  • 0.2:
    • port to GTK2
    • using libsndfile instead of libaudiofile for reading audio files.
  • 0.1:
    • initial GTK1 version
last modified: Wednesday, 12-May-2010 00:37:13 CEST