my digital playground

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.

MP3 Player in Processing

Download Source Code here: Aufgabe_4.java Aufgabe_4.pde

Demo: here

Bookmark, print, and share:
  • Print
  • PDF
  • Add to favorites
  • Digg
  • Facebook
  • del.icio.us
  • StumbleUpon
  • MySpace
  • Live
  • Google Bookmarks
:, ,

2 Comments for this entry

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...