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 saveSound() glitch
Page Index Toggle Pages: 1
ESS saveSound() glitch? (Read 1075 times)
ESS saveSound() glitch?
Jan 30th, 2006, 12:28am
 
Hi,

I've been using ESS saveSound() to write to .wav's and .aiff's, but I keep running into a wierd problem where it creates a file long enough to hold my sample, but then only appears to write to half of it ... the latter half of the file ends up corrupting.

At first it was speeding up the sample to fit the whole thing into the half-file, so I tried changing the sampleRate to adjust, but now it plays half the file at regular speed. I thought maybe it was my terrible amateur coding skills, but the same thing happened when I used the saveSound() example from the ESS site.

Here's a sample file:
http://ryanbetts.textdriven.com/bowie.wav

I'd really appreciate any helpful suggestions. I'm using the latest ESS and Processing builds.

Cheers.
-Ryan
Re: ESS saveSound() glitch?
Reply #1 - Jan 31st, 2006, 12:19am
 
can you send me an example? e-mail address is in the documentation. thanks!
Re: ESS saveSound() glitch?
Reply #2 - Jan 31st, 2006, 12:36am
 
It's in the mail. Thanks for the speedy reply.
Page Index Toggle Pages: 1