Re: [ecasound] ecasound resample problem

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] ecasound resample problem
From: Aaron Heller (heller_AT_AI.SRI.COM)
Date: Sun Jul 25 2004 - 10:03:32 EEST


Oops. I noticed that the script was always using resample. I fixed the
script and reran the tests and the clicks are still present. The
revised files are uploaded to my website.

Here's the revised script:

#!/bin/csh -x
foreach freq (100 1000)
   foreach st (s32_le s16_le)
     ecasound -t:5 -f:$st,2,96000 -i null \
              -el:sine_fcac,$freq,.1 -o:$st-$freq.wav
     foreach sr (44100 48000)
       foreach algo (resample resample-hq)
         ecasound -f:$st,2,$sr \
                  -i:$algo,auto,$st-$freq.wav \
                  -o:$st-$freq-$sr-$algo.wav
       end
     end
   end
end

Sorry for any confusion....

Aaron

Aaron Heller wrote:

>
> I used ecasound to resample an audio file from 96000 to 44100 kHz sample
> rate and noticed that there were faint clicks in the resulting file.
>
> To test this further, I wrote a csh script that generates 100Hz and 1kHz
> sine wave files at 96000 kHz sample rate and then resamples them to
> 44100 and 48000, with both the resample and resample-hq options, and at
> both 16-bit and 32-bit word length. All of the resampled files have
> clicks.
>
> Here is the script:
>
> #!/bin/csh -x
> foreach freq (100 1000)
> foreach st (s32_le s16_le)
> ecasound -t:5 -f:$st,2,96000 -i null \
> -el:sine_fcac,$freq,.1 -o:$st-$freq.wav
> foreach sr (44100 48000)
> foreach algo (resample resample-hq)
> ecasound -f:$st,2,$sr -i:resample,auto,$st-$freq.wav \
> -o:$st-$freq-$sr-$algo.wav
> end
> end
> end
> end
>
>
>
> The script, audio files, and wallpaper can be found at:
> http://www.ai.sri.com/ajh/audio/resamp-test/
>
>
> Any help would be appreciated. Thanks.
>
> Aaron Heller <heller_AT_ai.sri.com>
> Menlo Park, CA USA
>
> --
> To unsubscribe send message 'unsubscribe' in the body of the
> message to <ecasound-list-request_AT_wakkanet.fi>.
>


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Jul 25 2004 - 10:03:42 EEST