Pion production experiments with slowly ramped beams at storage rings