Hey guys, I have a patch set up to load audio files using [soundfiler]. I'm using it to play with my loop library which has .aiff files, some of which are 16-bit, others 24- or 32-bit (yeah I know, crappy organization...) The 16-bit files work in my patch but the other ones do not. Is there a way to make the 24- and 32-bit files work with [soundfiler]? I imagine it has something to do with the -raw tag but I don't really understand how that works from the help file?
-
Loading 32-bit aiff
-
That's strange, as long as your loading it without the -raw option and it's a PCM file with a proper header (which AIFF files are) then it should load just fine.
Have you tried opening them without the -raw options?
Just: read -resize file.aiff table -
I'm not using a -raw flag right now, just the old read -resize, and it is giving me this
"error: soundfiler_read: /Users/wkc/Library/Application Support/Ableton/Library/_Live/Loops/Continuous/Full Range/Strings Arvo.aif: unknown or bad header format"
-
I can't remember where I read this, but I believe you can specify the bit depth with the somewhat unintuitive <bytespersample> parameter with the -raw flag. It's 8 bits per byte, so 3 bytes for 24-bit and 4 bytes for 32-bit. [soundfiler]'s help file does say that Pd doesn't like floating-point aiffs, though, but that might just be referencing the [write( message.
Just for shits and giggles, have you tried loading one of the samples into a wave editor like Audacity and resaving it to overwrite the header?
-
I generally use wav now for this very reason. I had a lot of problems with going from ppc to intel and big/little endian differences
I used to get tables full of noise!
boonier