The envelope of a decorrelated signal derived from an original signal can be shaped without introducing additional distortion, when a spectral flattener is used to spectrally flatten the spectrum of the decorrelated signal and the original signal prior to using the flattened spectra for deriving a gain factor describing the energy distribution between the flattened spectra, and when the so derived gain factor is used by an envelope shaper to timely shape the envelope of the decorrelated signal.