Music player and fourier analysis with Processing
by Reto Vogel on Oct.03, 2009, under HSLU, Multimediatechnik, Processing, Programming
Today’s processing task was about programming a music player. There are several ways to implement music tasks (playing, recording etc.). I took the Minim library. Another one is the Ess audio library. I heard from my colleague Jürg Stalder that Minim didn’t work on his Mac Book and therefore he realized it with Ess – and as we can see, it works too.
I implemeted a play/pause function which can be used by pressing the spacebar. With the two methods
getMetaData().author();
player.getMetaData().title();
it is quite simple to get and display the ID3 tag of the song.
In addition I implemented the FFT (Fast Fourier Transformation) and a waveform which represent the song’s frequencies, volume etc. On the top behind the artist and the songtitle is a progressbar displayed.
Download Source Code here: Aufgabe_4.java Aufgabe_4.pde
Demo: here

May 6th, 2010 on 15:45
Awesome . Thanks!
May 24th, 2010 on 18:47
hey, I am studying graphic arts and your website is a great resource for both rookies and advanced designers. I’ve bookmarked you!