(actually the song player is by me)
File lister
here is an example to register new files throughout
you have to
- select wav/mp3
- sort
Chrisir
String[] fileList=null;
//---------------------------------------------------------------------------
// processing core functions
void setup() {
size(880, 800);
background(111); // gray
}
void draw() {
background(111); // gray
updateList();
showList();
}
//---------------------------------------------------------------------------
// Other functions
void updateList() {
File file = new File(dataPath(""));
fileList = file.list();
if (fileList==null) {
println("Folder is empty.");
} else {
// success
}//else
}//func
void showList() {
if (fileList==null)
return; // leave
int i=0;
for (String s1 : fileList) {
text(s1, 33, 44+i*22);
i++;
}//for
//
}//func
//