It seems to me that soundfiler accepts only some types of wav-files. I can only read the pd/doc/sounds/voice.wav to an array but not my own files.
Soundfiler-help says:
The [soundfiler] object reads and writes floating point arrays to binary soundfiles which may contain 2 or 3 byte fixed point or 4 byte floating point samples in wave, aiff, or next formats (no floating point aiff, though.).
I don't understand what that means. How can I get the right wav-files?
-
Soundfiler
-
Bytes are 8 bits, so it's really a convoluted way of saying 16-bit or 24-bit fixed-point or 32-bit floating-point. It's really not common these days for sound files to not be one of those.
Do you get any errors?
-
I don't get any errors if the wav-file is in the same folder than the patch.
What about mp3-files? Then I get the error "unknown or bad header format".
I send my patch but I just copied it from a tutorial. -
wav files are wav files, mp3 files are mp3 files. wav files have .wav at the end of them. Basically soundfiler can only read Pulse code modulation, or time domain samples. Mp3 files are frequency domain so the header/ encoding is fundamentally different
maybe if you post a short section of the soundfile you are trying to use? -
here is my soundfile. Thanks for your efforts.
-
are you sure it's not working? your sound file is very quiet. it works for me, try this after loading
[normalize(
|other than that I'm not sure, make sure the path to your file is right?
-
I normalizied the file with
[read -resize die.wav bla(
|
[;
bla normalize(
|
[soundfiler(
because I don't know what is for. Now it works, but it sounds awful. You must hear someone wispering but it's just noise.
Thanks for your help so far. -
is exactly the same, a semicolon before a message uses the first selector as the object to send to. If I were you I would get a better recording of that because it's so quiet that when you normalize you can actually hear the stepping of the bits
-
but with windows mediaplayer it sounds good and it isn't quit at all. How is this possible?
Does the quality of the normalization depends on the soundcard of the computer? -
Hi maexchen,
Maybe you can't hear anything because your file is stereo (almost silence on left and recording on right). You should save it as mono and save some storage space, or take a look at [soundfiler] help, there is an explanation how to write stereo files into two arrays. I hope that helps. -
Hi sinewave,
this was the point. Thank you very much!