The generation of sound by turbulent and separated flows