Mid-rapidity dependence of pion production in $$p-p$$ and $$A-A$$ collisions.