Longitudinal waves with varying amplitudes