Im using Processing 2.0b2 so that I can use Javascript mode to run the below code. The code works fine in Java mode but not JS mode. I cant figure out why, can anyone help?
The sketch is based on a post over at
openprocessing which also does not work in JS mode.
Thanks for any help in advance. The folder can be
downloaded here.
1.I am trying to load the file using the AudioPlayer class but i get a StackOverflowError: the sketch is attempting too much recursion. I thought the AudioPlayer streamed from the location or is this unrelated?
2. I would eventually like to see a waveform of the entire file. I can in Audacity and I can see that there are three significant sustained amplitude increases (audio is taken form a restaurant, so breakfast, lunch and dinner time). I would like to use the waveform to drive a vibration motor (im using Arduino for this). But instead of 8 hours, I want the waveform compressed into about 3 seconds. How do I get this waveform data in Minim? How do I compress it into 3 seconds? Am I making any sense?