Music and Me

Posted by | November 07, 2008 | ITP, Visual Communications | No Comments

So the topic this week was to choose some aspect of my life and visualize it. I think the hardest part was just choosing something. I wanted to do something that would matter to me. So… what happens alot in my life right now?

  • Books
  • Music
  • Food
  • Sleep

Yea, so I looked at my bookshelf, started counting. Got to around 300 and said No.
Food and sleep I just don’t remember to write stuff like that down. So music it is.

So, I guess I can finally give a straight answer when people ask what music I
listen to. Unknown.

Genre



Artists



Also, though I don’t really care for them much… here’s a couple wordables of all the data.

I used an the Mp3tag editor to generate and export the data i needed (cause w/ 5900 mp3′s you do not wanna do this by hand) and did a quicky program in processing to proccess all that data. (ooh, a pun!) Code is below.


Music artist;
Music album;
Music title;
Music genre;

void setup() {
size(50,50);
background(0);

String output[] = loadStrings("C:/Documents and Settings/Subterfuge/My Documents/test4.txt");
if(output!=null)
{
artist=new Music();
album=new Music();
title=new Music();
genre=new Music();

for(int i=0;i0;k--)
{
if(l.grab(k).getCount() > l.grab(k-1).getCount())
{
l.swap(k,k-1);
}
}
return;
}
}
l.add(song);
}
/*
String[] getMax(Music m)
{
String[] ret="";
int h=0,tmp=0,mark=0;
for(int i=0;ih)
{
h=tmp;
mark=i;
}
}
return m.grab(mark).getStr();
}
*/
class Music{
ArrayList l=new ArrayList();
Music(){}
void add(String s) {l.add(new Data(s,1));}
Data grab(int pos) {return (Data) l.get(pos);}
int getsize() {return l.size();}

void swap(int i, int j)
{
Object tmp = l.get(i);
l.set(i,l.get(j));
l.set(j,tmp);
}
}

class Data {
String s;
int i;
Data(String _s, int _i)
{
s=_s;
i=_i;
}
String getStr() {return s;}
int getCount() {return i;}
void plus(){i++;}
}

void draw(){}

Leave a Reply

Your email address will not be published.