The song of the túngara frog creates ripples in the surrounding water, which attracts unwanted attention from predatory bats and rival males. Sophie Bushwick reports