Patterns of dissonance