The poster’s question seems a bit awkward. There is no distinction between idealism and materialism in music, including the heart and soul. The question the poster wants to ask may be whether music is material or spiritual.
I will first briefly outline the concepts of idealism and materialism.
The distinction between idealism and materialism involves the most basic issue in philosophy, which is the relationship between thinking and existence.
There are two aspects to this relationship issue. The first and most fundamental aspect is who is the first between thinking and existence, that is, who comes first and who comes last, who decides who, and who is the world. the original problem.
When you think that thinking is the first thing in the world and the origin of the world, this is idealism
When you think that existence is the first thing in the world and the origin of the world, this is idealism Materialism
Except for this distinction, all other uses are incorrect.
Fundamentally speaking, materialism is right (matter is the origin of the world, and consciousness is the highest form of matter), but idealism plays an indelible role and enlightens thinking in many aspects.
We can analyze in depth the question of whether music is spiritual or material:
What is music composed of? The first is the sound, then the melody, rhythm, and timbre composition. So since music is sound first, then it is a sound wave, a physical existence, which is matter. But music is not a simple sound, it is a sound that people consciously combine, that is, a substance infused with spirit. But its essence is still material, but it is "humanized" material. In fact, basically too much material has been injected into people's consciousness, so most of the materials in society are "humanized" materials.