Excitation of capillary waves by longer waves