Beyonce and Jay-Z's producer has revealed their joint album was still being made hours before it was released.