We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Ess AudioChannel error: can't open files
Page Index Toggle Pages: 1
Ess AudioChannel error: can't open files (Read 690 times)
Ess AudioChannel error: can't open files
Jul 5th, 2008, 10:16pm
 
Sorry if this is an FAQ somewhere.

I am an experienced programmer, but I'm just getting starting with Processing and ESS, and am trying to play with the "analysis" sample program from the ESS distribution by loading my own file.

No matter what file I try to open with the AudioChannel constructor, Processing displays the error message "Unable to load sound...".  The audio file is 16-bit, mono, 44.1 kHz sample rate and is in the same directory as the .sde file.

Anyone know what I'm doing wrong?  Is there any way to get a more informative error message from ESS (as in, does it not find the file, or the file is unable to be read, etc.).
Re: Ess AudioChannel error: can't open files
Reply #1 - Aug 1st, 2008, 5:39pm
 
Did u put your music file in a folder named data in your scketch folder? (If that folder doesn't exist, create it)
Re: Ess AudioChannel error: can't open files
Reply #2 - Aug 13th, 2008, 10:36pm
 
I'm having basically the same problem.

Whenever I try to load my music files (aiff or wav) into the sketch--which effectively puts them in the data folder--Processing says it cannot load them.

However, I have no trouble loading the sample aiffs that the Processing documentation (all the example sketches and whatnot) includes, even though I do that by the same process.

Like DaveSeidel says, all my stuff is 16-bit, mono, 44.1 kHz, etc. etc. Any ideas?
Page Index Toggle Pages: 1