Towards a periodic deterministic source of arbitrary single-photon states