Both consonance and dissonance are words applied to harmony , chords , and intervals and , by extension , to melody , tonality , and even rhythm and metre .
In music , consonance and dissonance are words which are used to describe certain musical intervals or chords .