We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Jones - music vs the Dow
Page Index Toggle Pages: 1
Jones - music vs the Dow (Read 1066 times)
Jones - music vs the Dow
Jan 8th, 2009, 11:25pm
 
I've been noodling with visualizing network graphs of musical artists based on similarity data from Last.FM. I've always thought the music they played on the business news show Marketplace was cooler than usual for a biz show so I wanted to see the graph for the show. Then I wondered what the graph would look like plotted using an indicator of the economy for the day the artist was played on the show.

The sketch is here:

http://atomboy.isa-geek.com/~acoil/jones/

It looks like they save The Pixies, The Breeders, and Sonic Youth for down market days. Henry Mancini is for the good days.

There's some fun programming for those interested. I used Groovy to build and update a database from three different sources and I used Processing with the JUNG graphing library to draw the graph. The source is all posted.

Questions and comments are most welcome!

-Andrew

Update: My page was borked for IE, but I've fixed it now I hope.
Re: Jones - music vs the Dow
Reply #1 - Jan 9th, 2009, 2:17am
 
I like this idea a lot, but the visualization of the artists is a little messy. Not sure I understand how they're displayed in 2d space compared to each other.
Re: Jones - music vs the Dow
Reply #2 - Jan 9th, 2009, 2:45am
 
I agree that it's a little retina burning. It can help to pick a recent date to start from so you get fewer artists. They are arranged by similarity, so Count Basie is near Duke Ellington but not so close to Willie Nelson. I'm getting the similarity data from Last.FM. Here's their page for Stereolab:

http://www.last.fm/music/Stereolab/+similar

There are other layout algorithms available from JUNG that I might tinker with as well, but it's just an awful lot of data to get across. I was interested to see if there were whole neighborhoods that would go red like they only play these 20 punk bands on bad trading days.

Re: Jones - music vs the Dow
Reply #3 - Mar 31st, 2009, 2:25pm
 
AtomBoy, I was interested in how you got JUNG to work with Processing but I don't see a pde on your site or an explanation of what needs to be done with the dozen or so JUNG jar files.  I was wondering if you would share how you got it to work together.  Grin  Thanks
Re: Jones - music vs the Dow
Reply #4 - Mar 31st, 2009, 8:30pm
 
Jeff,

There is no pde. I wrote Jones as a Java applet that extends processing. The Ben Fry book Visualizing Data is where I learned how to do it this way. There's a tutorial here http://processing.org/learning/eclipse/ for Eclipse. I used NetBeans which is very similar.

There are lots of advantages to using an IDE like NetBeans rather than the Processing editor, but there's a steeper learning curve. The Integration section of the Processing discourse board is where you'll find more info and can ask questions http://processing.org/discourse/yabb2/board_Integrate.html

My code for Jones is here: http://atomboy.isa-geek.com/plone/Members/acoil/programing/jones/jones.zip

If you look at src\jones\Main.java it will look a lot like a regular processing sketch and might get you started with Jung. ArtistGraph.java is where most of the Jung calls are made.

HTH! Cheers,
Andrew
Re: Jones - music vs the Dow
Reply #5 - Apr 1st, 2009, 7:26am
 
I was able to get JUNG (Java Universal Network/Graph Framework) to import into the Processing editor by doing the following.

http://jung.sourceforge.net/

Create a "code" directory in your sketch folder and place the JUNG files inside.  In your sketch, import something like this.
Code:

import edu.uci.ics.jung.algorithms.filters.VertexPredicateFilter;
import edu.uci.ics.jung.algorithms.layout.FRLayout2;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.SparseMultigraph;
import edu.uci.ics.jung.graph.util.EdgeType;


I still haven't quite figured out how to make it available as a full processing library available to all projects as it seems to have an issue with folder / file names.  Not sure what to rename to what in order for it to work.
Page Index Toggle Pages: 1