Csound Csound-dev Csound-tekno Search About

[Csnd] sample rate and bit depth conversion

Date2010-03-31 14:20
FromPeiman Khosravi
Subject[Csnd] sample rate and bit depth conversion
Hello,

I have a general DSP question.

I have some sounds that I need to convert from 96k/24bit to 44.1/16.  
Theoretically is better to resample the sound-file first and then  
change the bit depth or the other way around, or is there no difference?

Thanks in advance

Peiman 


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-03-31 22:35
FromErik de Castro Lopo
Subject[Csnd] Re: sample rate and bit depth conversion
Peiman Khosravi wrote:

> I have a general DSP question.
> 
> I have some sounds that I need to convert from 96k/24bit to 44.1/16.  
> Theoretically is better to resample the sound-file first and then  
> change the bit depth or the other way around, or is there no difference?

Resample first. Always!

Bit depth reduction *always* reduces the quality (by raising the noise
floor) while sample rate converters can have noise floors at 150dB
below full scale and even lower.

Erik

Date2010-04-01 01:23
Frompeiman khosravi
Subject[Csnd] Re: Re: sample rate and bit depth conversion
Thanks very much!

Best,

Peiman

On 31 March 2010 23:35, Erik de Castro Lopo <mle+la@mega-nerd.com> wrote:
Peiman Khosravi wrote:

> I have a general DSP question.
>
> I have some sounds that I need to convert from 96k/24bit to 44.1/16.
> Theoretically is better to resample the sound-file first and then
> change the bit depth or the other way around, or is there no difference?

Resample first. Always!

Bit depth reduction *always* reduces the quality (by raising the noise
floor) while sample rate converters can have noise floors at 150dB
below full scale and even lower.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-04-01 17:59
Frommark jamerson
Subject[Csnd] Re: Re: Re: sample rate and bit depth conversion

 In addition to what Erik said,  in general, due to the quality reduction, a bit-depth reduction should always be the very last thing you do to a sound file. 

--- On Wed, 3/31/10, peiman khosravi <peimankhosravi@gmail.com> wrote:

From: peiman khosravi <peimankhosravi@gmail.com>
Subject: [Csnd] Re: Re: sample rate and bit depth conversion
To: csound@lists.bath.ac.uk
Date: Wednesday, March 31, 2010, 7:23 PM

Thanks very much!

Best,

Peiman

On 31 March 2010 23:35, Erik de Castro Lopo <mle+la@mega-nerd.com> wrote:
Peiman Khosravi wrote:

> I have a general DSP question.
>
> I have some sounds that I need to convert from 96k/24bit to 44.1/16.
> Theoretically is better to resample the sound-file first and then
> change the bit depth or the other way around, or is there no difference?

Resample first. Always!

Bit depth reduction *always* reduces the quality (by raising the noise
floor) while sample rate converters can have noise floors at 150dB
below full scale and even lower.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2010-04-01 18:03
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: Re: sample rate and bit depth conversion
Yes Yes thanks. I always work with 24 bit. I just had to send a file over the internet for someone to audition and needed o reduce the size.

Thanks again

Peiman


On 1 Apr 2010, at 17:59, mark jamerson wrote:


 In addition to what Erik said,  in general, due to the quality reduction, a bit-depth reduction should always be the very last thing you do to a sound file. 

--- On Wed, 3/31/10, peiman khosravi <peimankhosravi@gmail.com> wrote:

From: peiman khosravi <peimankhosravi@gmail.com>
Subject: [Csnd] Re: Re: sample rate and bit depth conversion
To: csound@lists.bath.ac.uk
Date: Wednesday, March 31, 2010, 7:23 PM

Thanks very much!

Best,

Peiman

On 31 March 2010 23:35, Erik de Castro Lopo <mle+la@mega-nerd.com> wrote:
Peiman Khosravi wrote:

> I have a general DSP question.
>
> I have some sounds that I need to convert from 96k/24bit to 44.1/16.
> Theoretically is better to resample the sound-file first and then
> change the bit depth or the other way around, or is there no difference?

Resample first. Always!

Bit depth reduction *always* reduces the quality (by raising the noise
floor) while sample rate converters can have noise floors at 150dB
below full scale and even lower.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"