Abstract
This article explores the process of learning composition by analyzing music grammar and utilizing visualization tools. The frequency relationships and characteristics of chords are combined with mathematical tools to establish a correlation analysis method based on mathematical models. This method is not only a visual representation, but also a construction of a mathematical model based on the essential correlation of chords. The article highlights a new mathematical representation of chord characteristics which is constructed by assigning geometric-mathematical definitions to different functional chords, and establishing a correlation between them. The study also examines the process of creating four-part harmony from a given melody, utilizing various grammars and visualization tools. The article aims to simplify and clarify the analysis of basic music theory concepts, including chord progressions, counterpoint, voice leading, and harmonic analysis. The findings offer a practical approach for composition beginners to learn and create music.

