Hi ,
when sending a read message to SOUNDFILER object,
like,
read -resize ../flauta.aif array99
the sound is not loaded to array99 and I get,
"warning: array1: multiply defined"
thanks for any help!
MMS
SOUNDFILER read message
Hi ,
when sending a read message to SOUNDFILER object,
like,
read -resize ../flauta.aif array99
the sound is not loaded to array99 and I get,
"warning: array1: multiply defined"
thanks for any help!
MMS
OK, it works now, sounds are loaded, but...
SOUNFILER doesn't return the number of samples in the sound
MMS
soundfiler returns the number of samples loaded to the array not the file's size. You are using -resize so it should be the same as the file's size but there is an exception. By default soundfiler will cut off at 4 million samples. So if you're file is larger that 1 minute and half it will get cut (the console will give you a warning). To change this behavior you'll have to use the -maxsize flag as well:
[read -maxsize 8000000 -resise file.wav array99 ( //this give you a 3 minute limit
Also, AIF files are notoriously unreliable with soundfiler since floating point aiffs are not supported.
yeah, i always convert my stuff to .wav to use with pd
Oops! Looks like something went wrong!