The perception of consonance and dissonance