Intracranial recordings and computational modelling of music reveal the time-course of prediction error signaling in frontal and temporal cortices.