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: loading mp3's from the local filesystem
Page Index Toggle Pages: 1
ESS: loading mp3's from the local filesystem (Read 1161 times)
ESS: loading mp3's from the local filesystem
Jan 5th, 2006, 9:00am
 
Hi,

In the documentation for ESS, it says that using the loadSound() method, files can be loaded from the local file system for exported applications from Processing (http://www.tree-axis.com/Ess/Channel_loadSound_.html)

Any advice on how to format the path to the file in question? Just as a test, I tried putting a file I wanted to load in the root of the C: drive and tried loading it with myChannel.loadSound("c:\filename.wav"); but the compiler doesn't like the backslash in the string. Any advice? Thanks.

-Aaron
Re: ESS: loading mp3's from the local filesystem
Reply #1 - Jan 28th, 2006, 10:10am
 
just a sidenote: use '\\' not '\'
\ used to mark special characters in formatted strings.
if you want to write \, write \\

void setup() {
 size(200,200);
 println("\\"); <<-- this is the good way
}
Re: ESS: loading mp3's from the local filesystem
Reply #2 - Jan 31st, 2006, 12:19am
 
definitely a glitch on my end i think. i'm working on a fix for tonight.
Page Index Toggle Pages: 1