Storing data into an array (processing.sound)

there might be some java bits in here that give you some inspiration, this is using Minim sound library to load a song into an array and capture frequencies, function audioToArray() does the main bit