Csound Csound-dev Csound-tekno Search About

analog to digital coding

Date1998-06-22 17:36
FromPedro Batista
Subjectanalog to digital coding
I'm having some doubts concerning a- and k-type variables data range, and 
would apreciate if someone cleared this matter for me or direct me to 
relevant info

I want to convert an a-type variable into a binary representation (like with 
sound file encoding). To use logarithmic representation of dynamics, and a 
sample word length of 16 bits, that will lead to 6db/bit, but I need to know 
what the maximum dynamic range is, in order to be able to construct a binary 
encoding
Can someone more knowledgeable, introduce me to the maths of converting the 
a-values, into 16-bit logarithmic encoded binaries?

Thanks a lot in advance

pedro