Spatiotemporal control of cell fate and cardiac differentiation