Longitudinal sound waves are waves of alternating pressure deviations from the equilibrium pressure , causing local regions of compression and rarefaction , while transverse waves ( in solids ) are waves of alternating shear stress at right angle to the direction of propagation .
Sound waves have two parts : compression and rarefaction .