### MaxMod Stream Format

Posted:

**Mon Mar 28, 2011 1:02 am**In the MaxMod streaming example the actual sample data is derived from the function sinLerp() which returns a "4.12 fixed point number with the range [-1, 1]". This implies that the stream data format is also in 4.12 fixed format.

My question is what is the format for raw sound data to be put in the stream? Is it signed or unsigned? Is it a fixed 4.12 number between -1 and 1 (or possibly between -15.999999999999 and 15.999999999999 which would logically be the minimum and maximum values for a signed 4.12 number)?

As an aside, if sinLerp and other trig functions return signed values in 4.12, shouldn't one of those bits (the most signifigant bit usually isn't it) be the sign bit? So shouldn't it be 3.12 or 4.11 for a signed number?

Thanks

My question is what is the format for raw sound data to be put in the stream? Is it signed or unsigned? Is it a fixed 4.12 number between -1 and 1 (or possibly between -15.999999999999 and 15.999999999999 which would logically be the minimum and maximum values for a signed 4.12 number)?

As an aside, if sinLerp and other trig functions return signed values in 4.12, shouldn't one of those bits (the most signifigant bit usually isn't it) be the sign bit? So shouldn't it be 3.12 or 4.11 for a signed number?

Thanks