The tonalities of major and minor as means for managing dissonance and chromaticism in music took full shape