Microscopy theory of velocity of sound in L2-xMxCuO4 (L = Nd, La, Pr, Gd; M = Sr, Ce)