A PseudoWave is applied as (samples * scale) + offset, so subtracting one from a number negates the scale and takes the offset from the number: e1 - ((g * scale) + offset) is (g * -scale) + (e1 - offset).
A PseudoWave is applied as (samples * scale) + offset, so subtracting one from a number negates the scale and takes the offset from the number: e1 - ((g * scale) + offset) is (g * -scale) + (e1 - offset).