face the music

Face the music is an idiom about accepting the unpleasant consequences of ones actions. To face the music means you are facing the consequences of whatever you did, primarily something against the rules, illegal or just frowned upon. If someone says they had to face the music, it meant they did something intentionally knowing it was not allowed, and they got caught and had to face punishment.