Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Need help, Null pointer exception

$
0
0
Good idea...
A bit of code to get you started:
  1. String[] fileNames = {
  2. "D1.wav",
  3. "C#1.wav",
  4. "A1.wav",
  5. "A#1.wav",
  6. "F1.wav",
  7. "D#1.wav",
  8. "E1.wav",
  9. "C1.wav",
  10. "G#1.wav",
  11. "G1.wav",
  12. "G#1.wav",
  13. "B1.wav",
  14. };
  15. Movie[] movies = new Movie[fileNames.length];
  16.  
  17. void setup()
  18. {
  19.   for (int i = 0; i < fileNames.length; i++)
  20.   {
  21.     movies[i] = minim.loadFiles(fileNames[i]);
  22.   }
  23. }
(untested!)

Viewing all articles
Browse latest Browse all 1768

Trending Articles