Hi Andrew,
The formula for a samples volume is as follows:
volume = ( channel_volume * channel_expression * channel_pan * velocity ) / ( 127 ^ 3);
Which produces a number from 0..127, as each of those parameters is also 0..127.
Then the master volume is also applied.