The Role of Consonance and Dissonance in Music