Controlled generation of single photons in a coupled atom-cavity system at a fast repetition-rate.