Mechanisms for treating input envelope representation coefficients are presented. One method is performed by an encoder of a communication system. The method comprises determining the residual envelope representation coefficients as the first compressed envelope representation coefficients subtracted from the input envelope representation coefficients. The method comprises transforming the residual envelope representation coefficients into a distorted domain to obtain the transformed envelope representation residual coefficients. The method comprises applying at least one of a plurality of gain shape coding schemes to the transformed envelope representation residual coefficients in order to achieve the gain shape coded envelope representation coefficients, wherein the plurality of gain coding schemes. Gain shape coding has mutually different proportions in one or more of gain resolution and shape resolution for one or more of the transformed envelope representation coefficients. The method comprises transmitting, on a communication channel, to a decoder a representation of the first compressed envelope representation coefficients, residual gain encoded envelope representation coefficients, and information about the at least one encoding scheme. gain form applied.
展开▼