Research on mathematical analysis of musical consonance and dissonance