need advice regarding playing an external soundfile.
I am using the readsf~ object but -sometime audio files are playing thru it and sometimes they are not showing an error message in the console window-
dsp: ...........................WAV: unknown or bad header format. Though I am using .wav file in every instance.
In some cases the output sound is getting distorted.
can somebody suggest me whr I am going wrong
-
help
-
Hi and welcome to this forum,
First of all, I moved your post to the category "technical issues" as it is better suited here. Secondly, I'd advise you to upload one of these problematic wav files so other people can have a look on it. I myself never encountered this problem before, but according to the thread http://forum.pdpatchrepo.info/topic/3403/readsf-problem-again/4 the problem is probably on the file itself. Do you have Audacity installed on your computer? If so, do as one of the posters in that thread suggests: open your sound file with Audacity and save it again in wav file under a different name, and then see if Pd is able to read it.
Cheers,
Gilberto -
Thanks for your reply
I do have audacity.And I have exported the soundfile in WAV(Microsoft) signed 16bitPCM.
Is that the right format
please suggest -
@maddynakedymaddy said:
Thanks for your reply
I do have audacity.And I have exported the soundfile in WAV(Microsoft) signed 16bitPCM.
Is that the right format
please suggestaftr converting the files in the above mentioned format somehow they are getting distorted when I am playing them through readsf~
but when I am playing the audio as it is in a media player there is no sound distortion .
how can i upload the the soundfile in the forum here so that people have a look and suggest.
Thanks -
Hi,
First of all, please do not post the same question more than once on this forum (I just deleted the other copy of this question). To uoload something to the forum, simply click on the icon of an arrow pointing up which is located three icons to the right of the italic icon and four icons to the right of the bold icon.
You also need to tell us which kind of distortion are you having, is it playing at different speeds, is the sound glitchy, if so in which way, etc.Cheers,
Gilberto -
I am extremely sorry please bear with me
Let me be more specific-the disortion that I am getting is what happens when the sound is fast-forwaded -playing at a much faster speed.
I have converted the file into wav file in audacity by exporting it as- WAV(Microsoft)signed 16bitPCM
can you suggest
thanks
Sujay -
Hi Sujay. no problems.
About your issue, you are trying to play audio files that have different audio rate than your Pd configuration (normally it's 44100 Hz). Try this: open your audio file in Audacity, then on the bottom left you should see a label "Project Rate (Hz)". Select 44100, and now export it as wav file. This should solve your issues.
Cheers,
Gilberto -
Thank you so much - it did sort out my problem and it was something that I was always overlooking.
I have another small question is thr any noise filter object in puredata whr i can filter live noise as I take bites through adc~ object and play it out in dac~
thanks
Sujay -
Hi Sujay,
Glad to hear your problem is solved. About your next question, first a reminder: it's better if you always open a new post for each new question instead of asking unrelated things on a same place. This way the forum remains organized and people with similar questions can find these conversations easily in the future.
But about noise reduction, I know that the library FFT has an object for that but I never tried it myself. You can check it out here: https://puredata.info/downloads/fftease
Cheers,
Gilberto -
@maddynakedymaddy
Hello Sujay,
If you might have files with different sample rates you could use this to set the Pd rate to match the file being played........
auto_samplerate.pdDavid.